Skip to contentSkip to conversation

Allow Gentoo rc-update to manage runlevels, try 2

PATCH New gizmo at giz-works.com 2 participants 2 messages Dec 20, 2010 – Jan 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Allow Gentoo rc-update to manage runlevels, try 2

From: Chris Richards <[email protected]>

rc-update cannot properly update the system runlevels, even when run as the root user in sysadm role.

---
 policy/modules/system/selinuxutil.te |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
policy/modules/system/selinuxutil.te +4 -0
index ff5d72d..9a71b6e 100644
@@ -405,6 +405,10 @@ ifndef(`direct_sysadm_daemon',`
 	')
 ')
 
+ifdef(`distro_gentoo',`
+	init_manage_script_runlevel_files(run_init_t)
+')
+
 ifdef(`distro_ubuntu',`
 	optional_policy(`
 		unconfined_domain(run_init_t)
Signature · 1 line
1.7.3.2
#1 lore raw

PATCH 2/2 Allow Gentoo rc-update to manage runlevels, try 2

Quoted 4 lines · gizmo at giz-works.com

From: Chris Richards <[email protected]>

rc-update cannot properly update the system runlevels, even when run as the root user in sysadm role.

rc-update should not be running in run_init_t.

Quoted 20 lines
---
 policy/modules/system/selinuxutil.te |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
policy/modules/system/selinuxutil.te +4 -0
index ff5d72d..9a71b6e 100644
@@ -405,6 +405,10 @@ ifndef(`direct_sysadm_daemon',`
 	')
 ')
 
+ifdef(`distro_gentoo',`
+	init_manage_script_runlevel_files(run_init_t)
+')
+
 ifdef(`distro_ubuntu',`
 	optional_policy(`
 		unconfined_domain(run_init_t)
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com