diff options
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2013-11-06 03:00:16 +0000 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2013-11-06 03:00:16 +0000 |
commit | ac8d09538e0c2d2c6cb593354df7c05a0a92afb2 (patch) | |
tree | da9e6e48ce005a561a889a6d2d814546869ad3e5 /sepolicy | |
parent | 75fb1555abb7b38552c61b28827b592760a6f9aa (diff) | |
download | vendor_replicant-ac8d09538e0c2d2c6cb593354df7c05a0a92afb2.zip vendor_replicant-ac8d09538e0c2d2c6cb593354df7c05a0a92afb2.tar.gz vendor_replicant-ac8d09538e0c2d2c6cb593354df7c05a0a92afb2.tar.bz2 |
selinux: Add CM-specific file_contexts
Change-Id: Ie70c59acedbb7be2f5b34a83c1d3d011f440ba05
Diffstat (limited to 'sepolicy')
-rw-r--r-- | sepolicy/file_contexts | 8 | ||||
-rw-r--r-- | sepolicy/sepolicy.mk | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts new file mode 100644 index 0000000..65e21c9 --- /dev/null +++ b/sepolicy/file_contexts @@ -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 + diff --git a/sepolicy/sepolicy.mk b/sepolicy/sepolicy.mk index 94df225..af929d9 100644 --- a/sepolicy/sepolicy.mk +++ b/sepolicy/sepolicy.mk @@ -7,5 +7,6 @@ BOARD_SEPOLICY_DIRS += \ vendor/cm/sepolicy BOARD_SEPOLICY_UNION += \ + file_contexts \ seapp_contexts \ mac_permissions.xml |