Files
device_xiaomi_rosemary/sepolicy/vendor/hal_power_default.te
DarkJoker360 93d94923dd rosemary: sepolicy: Update gpu related sysfs labels
* Matches mediatek sepolicy repo.

Change-Id: I486f82d8cc913a17eeb9afc66aa403b90716a6cf
2023-06-01 12:44:18 +02:00

50 lines
2.0 KiB
Plaintext

typeattribute hal_power_default mlstrustedsubject;
allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
allow hal_power_default cgroup:file r_file_perms;
# To get/set powerhal state property
set_prop(hal_power_default, vendor_power_prop)
# Rule for hal_power_default to access graphics composer process
unix_socket_connect(hal_power_default, pps, hal_graphics_composer_default);
# Set scheduling info for apps (for adpf)
allow hal_power_default appdomain:process { getsched setsched };
allow hal_power_default self:capability sys_nice;
# Set scheduling info for system_server (for adpf)
allow hal_power_default system_server:process setsched;
# Set CPU frequency
allow hal_power_default sysfs_mtk_cpufreq:file rw_file_perms;
# Set GPU frequency
allow hal_power_default sysfs_mtk_gpufreq:file rw_file_perms;
allow hal_power_default sysfs_gpu:dir r_dir_perms;
allow hal_power_default sysfs_gpu:file rw_file_perms;
# Set perfmgr nodes
allow hal_power_default proc_perfmgr:dir r_dir_perms;
allow hal_power_default sysfs_fpsgo:file w_file_perms;
allow hal_power_default proc_ppm:dir r_dir_perms;
allow hal_power_default proc_ppm:file rw_file_perms;
allow hal_power_default proc_cpufreq:dir r_dir_perms;
allow hal_power_default proc_cpufreq:file rw_file_perms;
allow hal_power_default proc_hps:dir r_dir_perms;
allow hal_power_default proc_hps:file rw_file_perms;
allow hal_power_default proc_cm_mgr:dir r_dir_perms;
allow hal_power_default proc_cm_mgr:file rw_file_perms;
allow hal_power_default proc_fliperfs:dir r_dir_perms;
allow hal_power_default proc_fliperfs:file rw_file_perms;
allow hal_power_default sysfs_fbt_cpu:dir r_dir_perms;
allow hal_power_default sysfs_fbt_cpu:file rw_file_perms;
allow hal_power_default sysfs_fbt_fteh:dir r_dir_perms;
allow hal_power_default sysfs_fbt_fteh:file rw_file_perms;
allow hal_power_default sysfs_fpsgo:dir r_dir_perms;
allow hal_power_default sysfs_fpsgo:file rw_file_perms;
# Set touchpanel nodes
allow hal_power_default sysfs_touchpanel:dir r_dir_perms;
allow hal_power_default sysfs_touchpanel:file rw_file_perms;