allow powerhal to access PA_KILL knobs

Bug: 322916612
Test: check avc logs
Change-Id: I637c6ad454b668f807b8d0eb4f66a83ca26dfa18
Signed-off-by: Martin Liu <liumartin@google.com>
This commit is contained in:
Martin Liu 2024-05-08 03:46:22 +00:00
parent 480bc0ce65
commit 2522590c40
3 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
type sysfs_pakills, fs_type, sysfs_type;

View File

@ -1 +1,2 @@
genfscon proc /sys/kernel/sched_pelt_multiplier u:object_r:proc_sched:s0 genfscon proc /sys/kernel/sched_pelt_multiplier u:object_r:proc_sched:s0
genfscon sysfs /kernel/vendor_mm/pa_kill u:object_r:sysfs_pakills:s0

View File

@ -0,0 +1,2 @@
allow hal_power_default sysfs_pakills:file rw_file_perms;
allow hal_power_default sysfs_pakills:dir r_dir_perms;