diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc index 05763e58..b8ee3071 100644 --- a/prebuilt/common/etc/init.local.rc +++ b/prebuilt/common/etc/init.local.rc @@ -92,17 +92,6 @@ on boot chown system system /sys/block/mmcblk0/queue/scheduler chmod 0664 /sys/block/mmcblk0/queue/scheduler - # allow system to modify ksm control files - chown root system /sys/kernel/mm/ksm/pages_to_scan - chmod 0664 /sys/kernel/mm/ksm/pages_to_scan - chown root system /sys/kernel/mm/ksm/sleep_millisecs - chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs - chown root system /sys/kernel/mm/ksm/run - chmod 0664 /sys/kernel/mm/ksm/run - write /sys/kernel/mm/ksm/sleep_millisecs 500 - write /sys/kernel/mm/ksm/pages_to_scan 100 - write /sys/kernel/mm/ksm/deferred_timer 1 - chown system system /dev/cpuctl/apps/cpu.notify_on_migrate chmod 0664 /dev/cpuctl/apps/cpu.notify_on_migrate diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 983f911a..7e9ba17f 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -14,7 +14,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_devices_system_cpu:s0 /sys/block/mmcblk0/queue/scheduler -- u:object_r:sysfs_writable:s0