cm: Remove KSM permissions
CM12 doesn't have a KSM setting in performance settings anymore.
KSM should be configured and enabled on device basis.
Change-Id: I98a0cbe1b01a659eb28bcd459be55d78a88bda86
diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc
index 05763e5..b8ee307 100644
--- a/prebuilt/common/etc/init.local.rc
+++ b/prebuilt/common/etc/init.local.rc
@@ -92,17 +92,6 @@
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 983f911..7e9ba17 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