aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'policy/modules/system/init.fc')
-rw-r--r--policy/modules/system/init.fc29
1 files changed, 9 insertions, 20 deletions
diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc
index a5c9bfa5..3e1365c7 100644
--- a/policy/modules/system/init.fc
+++ b/policy/modules/system/init.fc
@@ -20,26 +20,6 @@ ifdef(`distro_gentoo',`
/dev/initctl -p gen_context(system_u:object_r:initctl_t,s0)
#
-# /lib
-#
-/lib/systemd/systemd -- gen_context(system_u:object_r:init_exec_t,s0)
-
-ifdef(`distro_gentoo', `
-/lib/rc/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0)
-')
-
-#
-# /sbin
-#
-/sbin/init(ng)? -- gen_context(system_u:object_r:init_exec_t,s0)
-# because nowadays, /sbin/init is often a symlink to /sbin/upstart
-/sbin/upstart -- gen_context(system_u:object_r:init_exec_t,s0)
-
-ifdef(`distro_gentoo', `
-/sbin/rc -- gen_context(system_u:object_r:rc_exec_t,s0)
-')
-
-#
# /usr
#
/usr/bin/sepg_ctl -- gen_context(system_u:object_r:initrc_exec_t,s0)
@@ -50,6 +30,11 @@ ifdef(`distro_gentoo', `
/usr/lib/systemd/ntp-units\.d -d gen_context(system_u:object_r:systemd_unit_t,s0)
/usr/lib/systemd/system(/.*)? gen_context(system_u:object_r:systemd_unit_t,s0)
+ifdef(`distro_gentoo', `
+/usr/lib/rc/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0)
+')
+
+
/usr/libexec/dcc/start-.* -- gen_context(system_u:object_r:initrc_exec_t,s0)
/usr/libexec/dcc/stop-.* -- gen_context(system_u:object_r:initrc_exec_t,s0)
@@ -58,6 +43,10 @@ ifdef(`distro_gentoo', `
/usr/sbin/open_init_pty -- gen_context(system_u:object_r:initrc_exec_t,s0)
/usr/sbin/upstart -- gen_context(system_u:object_r:init_exec_t,s0)
+ifdef(`distro_gentoo', `
+/usr/sbin/rc -- gen_context(system_u:object_r:rc_exec_t,s0)
+')
+
#
# /var
#