Skip to contentSkip to conversation

cpuspeed wants to write to sysfs_dirs

PATCH Daniel J Walsh 2 participants 2 messages Mar 23, 2007 – Mar 28, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw
policy/modules/kernel/devices.if +18 -0
@@ -2449,6 +2449,24 @@
 
 ########################################
 ## <summary>
+##	Write in a sysfs directories.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	The type of the process performing this action.
+##	</summary>
+## </param>
+#
+interface(`dev_write_sysfs_dirs',`
+	gen_require(`
+		type sysfs_t;
+	')
+
+	allow $1 sysfs_t:dir write;
+')
+
+########################################
+## <summary>
 ##	Search the sysfs directories.
 ## </summary>
 ## <param name="domain">
policy/modules/services/cpucontrol.te +1 -0
@@ -91,6 +91,7 @@
 kernel_read_system_state(cpuspeed_t)
 kernel_read_kernel_sysctls(cpuspeed_t)
 
+dev_write_sysfs_dirs(cpuspeed_t)
 dev_rw_sysfs(cpuspeed_t)
 
 domain_use_interactive_fds(cpuspeed_t)
#1 lore raw

Dupe. Already merged.

Quoted 38 lines · Daniel J Walsh
policy/modules/kernel/devices.if 2007-03-22 15:06:58.000000000 -0400 renamed from policy/modules/kernel/devices.if 2007-01-02 12:57:13.000000000 -0500 +18 -0
@@ -2449,6 +2449,24 @@
 
 ########################################
 ## <summary>
+##     Write in a sysfs directories.
+## </summary>
+## <param name="domain">
+##     <summary>
+##     The type of the process performing this action.
+##     </summary>
+## </param>
+#
+interface(`dev_write_sysfs_dirs',`
+       gen_require(`
+               type sysfs_t;
+       ')
+
+       allow $1 sysfs_t:dir write;
+')
+
+########################################
+## <summary>
 ##     Search the sysfs directories.
 ## </summary>
 ## <param name="domain">
policy/modules/services/cpucontrol.te 2007-03-22 15:06:59.000000000 -0400 renamed from policy/modules/services/cpucontrol.te 2007-01-02 12:57:43.000000000 -0500 +1 -0
@@ -91,6 +91,7 @@
 kernel_read_system_state(cpuspeed_t)
 kernel_read_kernel_sysctls(cpuspeed_t)
 
+dev_write_sysfs_dirs(cpuspeed_t)
 dev_rw_sysfs(cpuspeed_t)
 
 domain_use_interactive_fds(cpuspeed_t)
Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.