LG8n: sepolicy: Address libperfmgr power HAL denials

Change-Id: Ia642e53930b77b79f157e27c135c13b4e2131cff
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Woomymy 2024-08-13 10:45:41 +08:00 committed by Shirayuki39
parent d3486f89d0
commit 1ed39b01a9

View file

@ -3,3 +3,28 @@ allow hal_power_default proc_main_gesture_function:file rw_file_perms;
# Allow libperfmgr to control cgroups
allow hal_power_default cgroup:file rw_file_perms;
# Allow libperfmgr to write GPU nodes
allow hal_power_default sysfs_gpu:dir r_dir_perms;
allow hal_power_default sysfs_gpu:file rw_file_perms;
# Allow libperfmgr to control cpu frequencies
allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
# Allow libperfmgr to control FPSGO boost
r_dir_file(hal_power_default, sysfs_fpsgo)
allow hal_power_default sysfs_fpsgo:file w_file_perms;
r_dir_file(hal_power_default, sysfs_mtk_fpsgo)
allow hal_power_default sysfs_mtk_fpsgo:file w_file_perms;
# Allow libperfmgr to control GPU boost
r_dir_file(hal_power_default, sysfs_ged)
allow hal_power_default sysfs_ged:file w_file_perms;
# Allow libperfmgr to control task turbo
r_dir_file(hal_power_default, sysfs_task_turbo)
allow hal_power_default sysfs_task_turbo:file w_file_perms;
# Allow libperfmgr to control CPU DMA Latency
allow hal_power_default cpu_dma_latency_device:chr_file w_file_perms;