Use genfscon to label /sys/devices/system/cpu/online as cpu_online_t
PATCH 1/1 Use genfscon to label /sys/devices/system/cpu/online as cpu_online_t
From: Laurent Bigonville <[email protected]>
Since 8e01472078763ebc1eaea089a1adab75dd982ccd, it's possible to use genfscon for sysfs.
This patch should help to deprecate distribution specific call to restorecon or tmpfiles to restore /sys/devices/system/cpu/online during boot.
Thanks to Dominick for the tip.
--- policy/modules/kernel/devices.te | 1 + 1 file changed, 1 insertion(+)
policy/modules/kernel/devices.te +1 -0
@@ -66,6 +66,7 @@ dev_node(cpu_device_t) type cpu_online_t, sysfs_types; files_type(cpu_online_t) dev_associate_sysfs(cpu_online_t) +genfscon sysfs /devices/system/cpu/online gen_context(system_u:object_r:cpu_online_t,s0) # # Type for /dev/crash
Signature · 1 line
2.11.0
PATCH 1/1 Use genfscon to label /sys/devices/system/cpu/online as cpu_online_t
Quoted 19 lines · Laurent Bigonville via refpolicy
From: Laurent Bigonville <[email protected]>
Since
8e01472078763ebc1eaea089a1adab75dd982ccd, it's possible to use genfscon for sysfs.This patch should help to deprecate distribution specific call to restorecon or tmpfiles to restore
/sys/devices/system/cpu/onlineduring boot.Thanks to Dominick for the tip.
--- policy/modules/kernel/devices.te | 1 + 1 file changed, 1 insertion(+)policy/modules/kernel/devices.te +0
-0
policy/modules/kernel/devices.te dev_node(cpu_device_t) · line 69
Quoted 4 lines
policy/modules/kernel/devices.te +1
-0@@ -66,6 +66,7 @@ dev_node(cpu_device_t) type cpu_online_t, sysfs_types; files_type(cpu_online_t) dev_associate_sysfs(cpu_online_t) +genfscon sysfs /devices/system/cpu/online gen_context(system_u:object_r:cpu_online_t,s0)
Merged.
Signature · 1 line
Chris PeBenito