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 C818F139694 for ; Thu, 30 Mar 2017 17:09:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32840234027; Thu, 30 Mar 2017 17:09:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 00E97234027 for ; Thu, 30 Mar 2017 17:09:03 +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 07C9A341646 for ; Thu, 30 Mar 2017 17:09:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9EBBB73DB for ; Thu, 30 Mar 2017 17:09:00 +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: <1490882410.0575eea1a7dfe550051c45678d2b1d98b3b91805.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/dbus.fc policy/modules/contrib/iodine.fc policy/modules/contrib/mon.fc policy/modules/contrib/qemu.fc X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 0575eea1a7dfe550051c45678d2b1d98b3b91805 X-VCS-Branch: next Date: Thu, 30 Mar 2017 17:09:00 +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: e999bfa4-ef22-4ccc-8914-bc213ea18026 X-Archives-Hash: 767b07c8c95ed282164c015d12a36302 commit: 0575eea1a7dfe550051c45678d2b1d98b3b91805 Author: cgzones googlemail com> AuthorDate: Tue Mar 14 14:14:05 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Mar 30 14:00:10 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0575eea1 remove /var/run file context lefovers, add dbus exception policy/modules/contrib/dbus.fc | 17 ++++++++++------- policy/modules/contrib/iodine.fc | 4 ++-- policy/modules/contrib/mon.fc | 12 ++++++------ policy/modules/contrib/qemu.fc | 6 +++--- 4 files changed, 21 insertions(+), 18 deletions(-) diff --git a/policy/modules/contrib/dbus.fc b/policy/modules/contrib/dbus.fc index c7baa6ba..725276de 100644 --- a/policy/modules/contrib/dbus.fc +++ b/policy/modules/contrib/dbus.fc @@ -1,8 +1,11 @@ -HOME_DIR/\.dbus(/.*)? gen_context(system_u:object_r:session_dbusd_home_t,s0) +HOME_DIR/\.dbus(/.*)? gen_context(system_u:object_r:session_dbusd_home_t,s0) -/etc/dbus-.*(/.*)? gen_context(system_u:object_r:dbusd_etc_t,s0) +/etc/dbus-.*(/.*)? gen_context(system_u:object_r:dbusd_etc_t,s0) -/usr/bin/dbus-daemon(-1)? -- gen_context(system_u:object_r:dbusd_exec_t,s0) +/run/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_run_t,s0) +/run/messagebus\.pid -- gen_context(system_u:object_r:system_dbusd_var_run_t,s0) + +/usr/bin/dbus-daemon(-1)? -- gen_context(system_u:object_r:dbusd_exec_t,s0) /usr/lib/dbus-.*/dbus-daemon-launch-helper -- gen_context(system_u:object_r:dbusd_exec_t,s0) @@ -11,9 +14,9 @@ HOME_DIR/\.dbus(/.*)? gen_context(system_u:object_r:session_dbusd_home_t,s0) /usr/libexec/dbus-daemon-launch-helper -- gen_context(system_u:object_r:dbusd_exec_t,s0) -/var/lib/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_lib_t,s0) +/var/lib/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_lib_t,s0) -/run/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_run_t,s0) -/run/messagebus\.pid -- gen_context(system_u:object_r:system_dbusd_var_run_t,s0) +/var/named/chroot/var/run/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_run_t,s0) -/var/named/chroot/var/run/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_run_t,s0) +# /var/run prefix exception; https://dbus.freedesktop.org/doc/dbus-specification.html#idm2461 +/var/run/dbus/system_bus_socket gen_context(system_u:object_r:system_dbusd_var_run_t,s0) diff --git a/policy/modules/contrib/iodine.fc b/policy/modules/contrib/iodine.fc index 42a24aaf..53b6a139 100644 --- a/policy/modules/contrib/iodine.fc +++ b/policy/modules/contrib/iodine.fc @@ -1,5 +1,5 @@ /etc/rc\.d/init\.d/((iodined)|(iodine-server)) -- gen_context(system_u:object_r:iodined_initrc_exec_t,s0) -/usr/sbin/iodined -- gen_context(system_u:object_r:iodined_exec_t,s0) +/run/iodine(/.*)? gen_context(system_u:object_r:iodined_var_run_t,s0) -/var/run/iodine(/.*)? gen_context(system_u:object_r:iodined_var_run_t,s0) +/usr/sbin/iodined -- gen_context(system_u:object_r:iodined_exec_t,s0) diff --git a/policy/modules/contrib/mon.fc b/policy/modules/contrib/mon.fc index fa179dd8..c92575b4 100644 --- a/policy/modules/contrib/mon.fc +++ b/policy/modules/contrib/mon.fc @@ -1,11 +1,11 @@ -/usr/lib/mon/mon.d/.* -- gen_context(system_u:object_r:mon_net_test_exec_t,s0) -/usr/lib/mon/mon-local.d/.* -- gen_context(system_u:object_r:mon_local_test_exec_t,s0) -/usr/lib/mon-contrib/mon.d/.* -- gen_context(system_u:object_r:mon_net_test_exec_t,s0) -/usr/lib/mon-contrib/mon-local.d/.* -- gen_context(system_u:object_r:mon_local_test_exec_t,s0) +/run/mon(/.*)? gen_context(system_u:object_r:mon_var_run_t,s0) -/usr/sbin/mon -- gen_context(system_u:object_r:mon_exec_t,s0) +/usr/lib/mon/mon.d/.* -- gen_context(system_u:object_r:mon_net_test_exec_t,s0) +/usr/lib/mon/mon-local.d/.* -- gen_context(system_u:object_r:mon_local_test_exec_t,s0) +/usr/lib/mon-contrib/mon.d/.* -- gen_context(system_u:object_r:mon_net_test_exec_t,s0) +/usr/lib/mon-contrib/mon-local.d/.* -- gen_context(system_u:object_r:mon_local_test_exec_t,s0) -/var/run/mon(/.*)? gen_context(system_u:object_r:mon_var_run_t,s0) +/usr/sbin/mon -- gen_context(system_u:object_r:mon_exec_t,s0) /var/lib/mon(/.*)? gen_context(system_u:object_r:mon_var_lib_t,s0) /var/log/mon(/.*)? gen_context(system_u:object_r:mon_var_log_t,s0) diff --git a/policy/modules/contrib/qemu.fc b/policy/modules/contrib/qemu.fc index 122ca70f..1fc79800 100644 --- a/policy/modules/contrib/qemu.fc +++ b/policy/modules/contrib/qemu.fc @@ -1,4 +1,6 @@ -/usr/bin/qemu -- gen_context(system_u:object_r:qemu_exec_t,s0) +/run/xen/qmp.* -- gen_context(system_u:object_r:qemu_var_run_t,s0) + +/usr/bin/qemu -- gen_context(system_u:object_r:qemu_exec_t,s0) /usr/bin/qemu-system-.* -- gen_context(system_u:object_r:qemu_exec_t,s0) /usr/bin/qemu-kvm -- gen_context(system_u:object_r:qemu_exec_t,s0) /usr/bin/kvm -- gen_context(system_u:object_r:qemu_exec_t,s0) @@ -7,8 +9,6 @@ /usr/libexec/qemu.* -- gen_context(system_u:object_r:qemu_exec_t,s0) -/var/run/xen/qmp.* -- gen_context(system_u:object_r:qemu_var_run_t,s0) - ifdef(`distro_gentoo',` /usr/bin/qemu-ga -- gen_context(system_u:object_r:qemu_ga_exec_t,s0) 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 36A4E139694 for ; Thu, 30 Mar 2017 17:06:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C063234013; Thu, 30 Mar 2017 17:06:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2D109234012 for ; Thu, 30 Mar 2017 17:06:36 +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 F335D34164B for ; Thu, 30 Mar 2017 17:06:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 34FFB73ED for ; Thu, 30 Mar 2017 17:06:22 +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: <1490882410.0575eea1a7dfe550051c45678d2b1d98b3b91805.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/dbus.fc policy/modules/contrib/iodine.fc policy/modules/contrib/mon.fc policy/modules/contrib/qemu.fc X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 0575eea1a7dfe550051c45678d2b1d98b3b91805 X-VCS-Branch: master Date: Thu, 30 Mar 2017 17:06:22 +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: b9e1cc1b-7344-4ed7-83be-1ec2bc20e500 X-Archives-Hash: ffdeb3223b9f80b2254a61677fbff832 Message-ID: <20170330170622.NTcbejuMKMu-F68qJLlblcTzfFBaU0UD4Ax_OH7GzhE@z> commit: 0575eea1a7dfe550051c45678d2b1d98b3b91805 Author: cgzones googlemail com> AuthorDate: Tue Mar 14 14:14:05 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Mar 30 14:00:10 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0575eea1 remove /var/run file context lefovers, add dbus exception policy/modules/contrib/dbus.fc | 17 ++++++++++------- policy/modules/contrib/iodine.fc | 4 ++-- policy/modules/contrib/mon.fc | 12 ++++++------ policy/modules/contrib/qemu.fc | 6 +++--- 4 files changed, 21 insertions(+), 18 deletions(-) diff --git a/policy/modules/contrib/dbus.fc b/policy/modules/contrib/dbus.fc index c7baa6ba..725276de 100644 --- a/policy/modules/contrib/dbus.fc +++ b/policy/modules/contrib/dbus.fc @@ -1,8 +1,11 @@ -HOME_DIR/\.dbus(/.*)? gen_context(system_u:object_r:session_dbusd_home_t,s0) +HOME_DIR/\.dbus(/.*)? gen_context(system_u:object_r:session_dbusd_home_t,s0) -/etc/dbus-.*(/.*)? gen_context(system_u:object_r:dbusd_etc_t,s0) +/etc/dbus-.*(/.*)? gen_context(system_u:object_r:dbusd_etc_t,s0) -/usr/bin/dbus-daemon(-1)? -- gen_context(system_u:object_r:dbusd_exec_t,s0) +/run/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_run_t,s0) +/run/messagebus\.pid -- gen_context(system_u:object_r:system_dbusd_var_run_t,s0) + +/usr/bin/dbus-daemon(-1)? -- gen_context(system_u:object_r:dbusd_exec_t,s0) /usr/lib/dbus-.*/dbus-daemon-launch-helper -- gen_context(system_u:object_r:dbusd_exec_t,s0) @@ -11,9 +14,9 @@ HOME_DIR/\.dbus(/.*)? gen_context(system_u:object_r:session_dbusd_home_t,s0) /usr/libexec/dbus-daemon-launch-helper -- gen_context(system_u:object_r:dbusd_exec_t,s0) -/var/lib/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_lib_t,s0) +/var/lib/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_lib_t,s0) -/run/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_run_t,s0) -/run/messagebus\.pid -- gen_context(system_u:object_r:system_dbusd_var_run_t,s0) +/var/named/chroot/var/run/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_run_t,s0) -/var/named/chroot/var/run/dbus(/.*)? gen_context(system_u:object_r:system_dbusd_var_run_t,s0) +# /var/run prefix exception; https://dbus.freedesktop.org/doc/dbus-specification.html#idm2461 +/var/run/dbus/system_bus_socket gen_context(system_u:object_r:system_dbusd_var_run_t,s0) diff --git a/policy/modules/contrib/iodine.fc b/policy/modules/contrib/iodine.fc index 42a24aaf..53b6a139 100644 --- a/policy/modules/contrib/iodine.fc +++ b/policy/modules/contrib/iodine.fc @@ -1,5 +1,5 @@ /etc/rc\.d/init\.d/((iodined)|(iodine-server)) -- gen_context(system_u:object_r:iodined_initrc_exec_t,s0) -/usr/sbin/iodined -- gen_context(system_u:object_r:iodined_exec_t,s0) +/run/iodine(/.*)? gen_context(system_u:object_r:iodined_var_run_t,s0) -/var/run/iodine(/.*)? gen_context(system_u:object_r:iodined_var_run_t,s0) +/usr/sbin/iodined -- gen_context(system_u:object_r:iodined_exec_t,s0) diff --git a/policy/modules/contrib/mon.fc b/policy/modules/contrib/mon.fc index fa179dd8..c92575b4 100644 --- a/policy/modules/contrib/mon.fc +++ b/policy/modules/contrib/mon.fc @@ -1,11 +1,11 @@ -/usr/lib/mon/mon.d/.* -- gen_context(system_u:object_r:mon_net_test_exec_t,s0) -/usr/lib/mon/mon-local.d/.* -- gen_context(system_u:object_r:mon_local_test_exec_t,s0) -/usr/lib/mon-contrib/mon.d/.* -- gen_context(system_u:object_r:mon_net_test_exec_t,s0) -/usr/lib/mon-contrib/mon-local.d/.* -- gen_context(system_u:object_r:mon_local_test_exec_t,s0) +/run/mon(/.*)? gen_context(system_u:object_r:mon_var_run_t,s0) -/usr/sbin/mon -- gen_context(system_u:object_r:mon_exec_t,s0) +/usr/lib/mon/mon.d/.* -- gen_context(system_u:object_r:mon_net_test_exec_t,s0) +/usr/lib/mon/mon-local.d/.* -- gen_context(system_u:object_r:mon_local_test_exec_t,s0) +/usr/lib/mon-contrib/mon.d/.* -- gen_context(system_u:object_r:mon_net_test_exec_t,s0) +/usr/lib/mon-contrib/mon-local.d/.* -- gen_context(system_u:object_r:mon_local_test_exec_t,s0) -/var/run/mon(/.*)? gen_context(system_u:object_r:mon_var_run_t,s0) +/usr/sbin/mon -- gen_context(system_u:object_r:mon_exec_t,s0) /var/lib/mon(/.*)? gen_context(system_u:object_r:mon_var_lib_t,s0) /var/log/mon(/.*)? gen_context(system_u:object_r:mon_var_log_t,s0) diff --git a/policy/modules/contrib/qemu.fc b/policy/modules/contrib/qemu.fc index 122ca70f..1fc79800 100644 --- a/policy/modules/contrib/qemu.fc +++ b/policy/modules/contrib/qemu.fc @@ -1,4 +1,6 @@ -/usr/bin/qemu -- gen_context(system_u:object_r:qemu_exec_t,s0) +/run/xen/qmp.* -- gen_context(system_u:object_r:qemu_var_run_t,s0) + +/usr/bin/qemu -- gen_context(system_u:object_r:qemu_exec_t,s0) /usr/bin/qemu-system-.* -- gen_context(system_u:object_r:qemu_exec_t,s0) /usr/bin/qemu-kvm -- gen_context(system_u:object_r:qemu_exec_t,s0) /usr/bin/kvm -- gen_context(system_u:object_r:qemu_exec_t,s0) @@ -7,8 +9,6 @@ /usr/libexec/qemu.* -- gen_context(system_u:object_r:qemu_exec_t,s0) -/var/run/xen/qmp.* -- gen_context(system_u:object_r:qemu_var_run_t,s0) - ifdef(`distro_gentoo',` /usr/bin/qemu-ga -- gen_context(system_u:object_r:qemu_ga_exec_t,s0)