selinux: Add CM-specific file_contexts

Change-Id: Ie70c59acedbb7be2f5b34a83c1d3d011f440ba05
This commit is contained in:
Ricardo Cerqueira 2013-11-06 03:00:16 +00:00
parent 75fb1555ab
commit ac8d09538e
2 changed files with 9 additions and 0 deletions

8
sepolicy/file_contexts Normal file
View file

@ -0,0 +1,8 @@
/cache/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0
#############################
# 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/block/mmcblk0/queue/scheduler -- u:object_r:sysfs_writable:s0

View file

@ -7,5 +7,6 @@ BOARD_SEPOLICY_DIRS += \
vendor/cm/sepolicy
BOARD_SEPOLICY_UNION += \
file_contexts \
seapp_contexts \
mac_permissions.xml