cm: sepolicy: Allow ueventd to properly handle cpufreq changes

* We need to allow relabeling since these files can pop in and out if
   the governor is changed.

Change-Id: Id75099290e24dac9962d4fed8148ec2df9e256b2
This commit is contained in:
Steve Kondik 2014-04-05 14:05:13 -07:00
parent bd3a941634
commit 002b4f0a4f
3 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,6 @@
#############################
# performance-related sysfs files (CM)
/sys/kernel/mm/ksm(/.*)? -- u:object_r:sysfs_writable:s0
/sys/devices/system/cpu.*/cpufreq(/.*)? -- u:object_r:sysfs_writable:s0
/sys/devices/system/cpu.*/cpufreq(/.*)? -- u:object_r:sysfs_devices_system_cpu:s0
/sys/block/mmcblk0/queue/scheduler -- u:object_r:sysfs_writable:s0

View File

@ -11,7 +11,8 @@ BOARD_SEPOLICY_UNION += \
file_contexts \
fs_use \
genfs_contexts \
installd.te \
seapp_contexts \
installd.te \
ueventd.te \
vold.te \
mac_permissions.xml

5
sepolicy/ueventd.te Normal file
View File

@ -0,0 +1,5 @@
# ueventd needs to relabel files that pop in and out of sysfs
allow ueventd sysfs:file relabelfrom;
# ueventd will set permissions on cpufreq nodes
allow ueventd sysfs_devices_system_cpu:file setattr;