From 69841f6659f2e8dd5b2ee826df333590c21f3617 Mon Sep 17 00:00:00 2001 From: SamarV-121 Date: Thu, 29 Apr 2021 17:58:01 +0530 Subject: [PATCH] universal7885: sepolicy: Allow power HAL to write /sys/devices/system/cpu Change-Id: I7e263adfd51eb2e2680b4ae5214734c0d5c4805c Signed-off-by: SamarV-121 --- sepolicy/private/hal_power.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sepolicy/private/hal_power.te b/sepolicy/private/hal_power.te index f1394a2..4fb868a 100644 --- a/sepolicy/private/hal_power.te +++ b/sepolicy/private/hal_power.te @@ -1,2 +1,7 @@ +# Allow power HAL to write /sys/class/sec/tsp r_dir_file(hal_power, sysfs_sec_tsp) allow hal_power sysfs_sec_tsp:file write; + +# Allow power HAL to write /sys/devices/system/cpu +r_dir_file(hal_power, sysfs_devices_system_cpu) +allow hal_power sysfs_devices_system_cpu:file write;