All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 1/2] Allow Gentoo rc-update to manage runlevels, try 2
@ 2010-12-20 22:28 gizmo at giz-works.com
  2010-12-20 22:37 ` Dominick Grift
  0 siblings, 1 reply; 2+ messages in thread
From: gizmo at giz-works.com @ 2010-12-20 22:28 UTC (permalink / raw)
  To: refpolicy

From: Chris Richards <gizmo@giz-works.com>

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

Signed-off-by: Chris Richards <gizmo@giz-works.com>
---
 policy/modules/system/init.if |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if
index ed152c4..7904818 100644
--- a/policy/modules/system/init.if
+++ b/policy/modules/system/init.if
@@ -1442,6 +1442,25 @@ interface(`init_dontaudit_use_script_ptys',`
 
 ########################################
 ## <summary>
+##	Manage init script runlevel files.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`init_manage_script_runlevel_files',`
+	gen_require(`
+		type initrc_state_t;
+	')
+
+	read_lnk_files_pattern($1, initrc_state_t, initrc_state_t)
+	files_manage_etc_symlinks($1)
+')
+
+########################################
+## <summary>
 ##	Get the attributes of init script
 ##	status files.
 ## </summary>
-- 
1.7.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-20 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20 22:28 [refpolicy] [PATCH 1/2] Allow Gentoo rc-update to manage runlevels, try 2 gizmo at giz-works.com
2010-12-20 22:37 ` Dominick Grift

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.