selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Zaman <jason@perfinion.com>
To: selinux-refpolicy@vger.kernel.org
Cc: Jason Zaman <jason@perfinion.com>
Subject: [PATCH 7/8] init: upstream fcontexts from gentoo policy
Date: Mon, 16 Nov 2020 19:46:27 -0800	[thread overview]
Message-ID: <20201117034628.2461-7-jason@perfinion.com> (raw)
In-Reply-To: <20201117034628.2461-1-jason@perfinion.com>

Signed-off-by: Jason Zaman <jason@perfinion.com>
---
 policy/modules/system/init.fc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc
index f1e6a61d0..63cf195e6 100644
--- a/policy/modules/system/init.fc
+++ b/policy/modules/system/init.fc
@@ -44,8 +44,11 @@ ifdef(`distro_gentoo',`
 /usr/sbin/upstart	--	gen_context(system_u:object_r:init_exec_t,s0)
 
 ifdef(`distro_gentoo', `
+/usr/lib/rc/cache(/.*)?		gen_context(system_u:object_r:initrc_state_t,s0)
+/usr/lib/rc/console(/.*)?		gen_context(system_u:object_r:initrc_state_t,s0)
 /usr/lib/rc/init\.d(/.*)?		gen_context(system_u:object_r:initrc_state_t,s0)
-/usr/sbin/rc		--	gen_context(system_u:object_r:rc_exec_t,s0)
+/usr/sbin/rc			--	gen_context(system_u:object_r:rc_exec_t,s0)
+/usr/sbin/openrc		--	gen_context(system_u:object_r:rc_exec_t,s0)
 /usr/sbin/openrc-init		--	gen_context(system_u:object_r:init_exec_t,s0)
 /usr/sbin/openrc-shutdown	--	gen_context(system_u:object_r:init_exec_t,s0)
 ')
@@ -79,6 +82,9 @@ ifdef(`distro_debian',`
 
 ifdef(`distro_gentoo', `
 /var/lib/init\.d(/.*)?		gen_context(system_u:object_r:initrc_state_t,s0)
+/var/lib/ip6?tables(/.*)?	gen_context(system_u:object_r:initrc_tmp_t,s0)
+
+/run/openrc(/.*)?		gen_context(system_u:object_r:initrc_state_t,s0)
 /run/svscan\.pid	--	gen_context(system_u:object_r:initrc_runtime_t,s0)
 ')
 
-- 
2.26.2


  parent reply	other threads:[~2020-11-17  3:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-17  3:46 [PATCH 1/8] userdomain: Add watch on home dirs Jason Zaman
2020-11-17  3:46 ` [PATCH 2/8] getty: allow watching file /run/agetty.reload Jason Zaman
2020-11-22 19:03   ` Chris PeBenito
2020-11-17  3:46 ` [PATCH 3/8] portage: Added /var/cache/distfiles path Jason Zaman
2020-11-22 19:03   ` Chris PeBenito
2020-11-17  3:46 ` [PATCH 4/8] init: Added fcontext for openrc-init Jason Zaman
2020-11-22 19:04   ` Chris PeBenito
2020-11-17  3:46 ` [PATCH 5/8] init: Added fcontext for openrc-shutdown Jason Zaman
2020-11-22 19:04   ` Chris PeBenito
2020-11-17  3:46 ` [PATCH 6/8] Add transition on gentoo init_t to openrc Jason Zaman
2020-11-22 19:04   ` Chris PeBenito
2020-11-17  3:46 ` Jason Zaman [this message]
2020-11-22 19:04   ` [PATCH 7/8] init: upstream fcontexts from gentoo policy Chris PeBenito
2020-11-17  3:46 ` [PATCH 8/8] systemd: make remaining dbus_* optional Jason Zaman
2020-11-22 19:04   ` Chris PeBenito
2020-11-22 19:03 ` [PATCH 1/8] userdomain: Add watch on home dirs Chris PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201117034628.2461-7-jason@perfinion.com \
    --to=jason@perfinion.com \
    --cc=selinux-refpolicy@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).