From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 846B21396D9 for ; Mon, 30 Oct 2017 15:07:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA7ECE1002; Mon, 30 Oct 2017 15:07:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9A01AE1002 for ; Mon, 30 Oct 2017 15:07:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4A1483416DE for ; Mon, 30 Oct 2017 15:07:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 95D779096 for ; Mon, 30 Oct 2017 15:07:44 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1509352782.ec7d886c63f83a6e50cbe816f255a653c2d8b17c.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/salt.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: ec7d886c63f83a6e50cbe816f255a653c2d8b17c X-VCS-Branch: master Date: Mon, 30 Oct 2017 15:07:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 889df67b-e94b-4010-8678-396baa702b64 X-Archives-Hash: 4cdb0ff0a5922f2a5b91370eb20f18cb commit: ec7d886c63f83a6e50cbe816f255a653c2d8b17c Author: Jason Zaman perfinion com> AuthorDate: Mon Oct 30 07:32:33 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Oct 30 08:39:42 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ec7d886c salt: master and minion need to map tmpfs files policy/modules/contrib/salt.te | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/salt.te b/policy/modules/contrib/salt.te index 9a8a4ad8..2eb7b7db 100644 --- a/policy/modules/contrib/salt.te +++ b/policy/modules/contrib/salt.te @@ -72,6 +72,9 @@ files_type(salt_minion_pki_t) type salt_minion_tmp_t; files_tmp_file(salt_minion_tmp_t) +type salt_minion_tmpfs_t; +files_tmpfs_file(salt_minion_tmpfs_t) + type salt_minion_var_run_t; init_daemon_pid_file(salt_minion_var_run_t, file, "salt-minion.pid") files_pid_file(salt_minion_var_run_t) @@ -144,7 +147,7 @@ files_tmp_filetrans(salt_master_t, salt_master_tmp_t, { file dir }) can_exec(salt_master_t, salt_master_tmp_t) # salt_master_tmpfs_t -allow salt_master_t salt_master_tmpfs_t:file manage_file_perms; +allow salt_master_t salt_master_tmpfs_t:file { manage_file_perms map }; fs_tmpfs_filetrans(salt_master_t, salt_master_tmpfs_t, file) # salt_master_var_run_t @@ -262,6 +265,10 @@ files_tmp_filetrans(salt_minion_t, salt_minion_tmp_t, { file dir }) # libffi, screw you can_exec(salt_minion_t, salt_minion_tmp_t) +# salt_minion_tmpfs_t +allow salt_minion_t salt_minion_tmpfs_t:file { manage_file_perms map }; +fs_tmpfs_filetrans(salt_minion_t, salt_minion_tmpfs_t, file) + # salt_minion_var_run_t allow salt_minion_t salt_minion_var_run_t:file manage_file_perms; allow salt_minion_t salt_minion_var_run_t:sock_file manage_sock_file_perms;