From 444ce4a6b18862944fe155074a2bd76c0a993eb3 Mon Sep 17 00:00:00 2001 From: Konsta Date: Wed, 31 Dec 2014 12:20:35 +0200 Subject: [PATCH] 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 --- prebuilt/common/etc/init.local.rc | 11 ----------- sepolicy/file_contexts | 1 - 2 files changed, 12 deletions(-) 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