Skip to contentSkip to conversation

rpcbind needs to read sysfs

PATCH New Russell Coker 3 participants 4 messages Jul 31, 2016 – Aug 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpcbind needs to read sysfs

Tiny patch for rpcbind to read sysfs.

policy/modules/contrib/rpcbind.te renamed from home/rjc/src/pol-git/policy/modules/contrib/rpcbind.te +3 -0
diff -ruN /home/rjc/src/pol-git/policy/modules/contrib/rpcbind.te ./policy/modules/contrib/rpcbind.te
@@ -39,6 +39,9 @@
 manage_sock_files_pattern(rpcbind_t, rpcbind_var_lib_t, rpcbind_var_lib_t)
 files_var_lib_filetrans(rpcbind_t, rpcbind_var_lib_t, { file dir sock_file })
 
+# for /sys/devices/system/cpu/online
+dev_read_sysfs(rpcbind_t)
+
 kernel_read_system_state(rpcbind_t)
 kernel_read_network_state(rpcbind_t)
 kernel_request_load_module(rpcbind_t)
#1 lore raw

PATCH 1/1 rpcbind needs to read sysfs

policy/modules/contrib/rpcbind.te line 43

Quoted 12 lines · Russell Coker

Tiny patch for rpcbind to read sysfs.

diff -ruN /home/rjc/src/pol-git/policy/modules/contrib/rpcbind.te ./policy/modules/contrib/rpcbind.te

policy/modules/contrib/rpcbind.te renamed from home/rjc/src/pol-git/policy/modules/contrib/rpcbind.te +2 -0
@@ -39,6 +39,9 @@
 manage_sock_files_pattern(rpcbind_t, rpcbind_var_lib_t, rpcbind_var_lib_t)
 files_var_lib_filetrans(rpcbind_t, rpcbind_var_lib_t, { file dir sock_file })
 
+# for /sys/devices/system/cpu/online
+dev_read_sysfs(rpcbind_t)

We have this interface now instead: dev_read_cpu_online() that file is labelled cpu_online_t now.

Quoted 8 lines
policy/modules/contrib/rpcbind.te renamed from home/rjc/src/pol-git/policy/modules/contrib/rpcbind.te +1 -0
+
 kernel_read_system_state(rpcbind_t)
 kernel_read_network_state(rpcbind_t)
 kernel_request_load_module(rpcbind_t)

_______________________________________________
refpolicy mailing list
refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy

#2 lore raw

PATCH 1/1 rpcbind needs to read sysfs

Quoted 5 lines · Jason Zaman

policy/modules/contrib/rpcbind.te line 43

Quoted 2 lines
policy/modules/contrib/rpcbind.te renamed from home/rjc/src/pol-git/policy/modules/contrib/rpcbind.te +2 -0
+# for /sys/devices/system/cpu/online
+dev_read_sysfs(rpcbind_t)

We have this interface now instead: dev_read_cpu_online() that file is labelled cpu_online_t now.

Thanks for that, I've attached an updated patch.

Signature · 9 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: text/x-patch
Size: 597 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20160801/63de19b5/attachment.bin 
#3 lore raw

PATCH 1/1 rpcbind needs to read sysfs

Quoted 8 lines · Russell Coker
Quoted 5 lines · Jason Zaman

policy/modules/contrib/rpcbind.te line 43

Quoted 2 lines
policy/modules/contrib/rpcbind.te renamed from home/rjc/src/pol-git/policy/modules/contrib/rpcbind.te +2 -0
+# for /sys/devices/system/cpu/online
+dev_read_sysfs(rpcbind_t)

We have this interface now instead: dev_read_cpu_online() that file is labelled cpu_online_t now.

Thanks for that, I've attached an updated patch.

Merged.

Signature · 1 line
Chris PeBenito