[selinux-policy: 83/3172] add in use and ignore use init control channel interfaces

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 19:12:20 UTC 2010


commit d0b6abebb938c92e6cd636d6fd8d1f5b5f37b5a1
Author: Chris PeBenito <cpebenito at tresys.com>
Date:   Mon May 2 18:40:05 2005 +0000

    add in use and ignore use init control channel interfaces

 refpolicy/policy/modules/system/init.if |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/refpolicy/policy/modules/system/init.if b/refpolicy/policy/modules/system/init.if
index 8b2e2f2..60a3bea 100644
--- a/refpolicy/policy/modules/system/init.if
+++ b/refpolicy/policy/modules/system/init.if
@@ -34,6 +34,35 @@ class fifo_file getattr;
 
 ########################################
 #
+# init_use_control_channel(domain)
+#
+define(`init_use_control_channel',`
+requires_block_template(init_use_control_channel_depend)
+allow $1 initctl_t:fifo_file { getattr read write };
+devices_list_device_nodes($1)
+')
+
+define(`init_use_control_channel_depend',`
+type initctl_t;
+class fifo_file { getattr read write };
+')
+
+########################################
+#
+# init_ignore_use_control_channel(domain)
+#
+define(`init_ignore_use_control_channel',`
+requires_block_template(init_ignore_use_control_channel_depend)
+dontaudit $1 initctl_t:fifo_file { read write };
+')
+
+define(`init_ignore_use_control_channel_depend',`
+type initctl_t;
+class fifo_file { read write };
+')
+
+########################################
+#
 # init_sigchld(domain,[`optional'])
 #
 define(`init_sigchld',`


More information about the scm-commits mailing list