android_device_motorola_sm6.../sepolicy/vendor/hal_power_default.te
Sugakesshaa ca771e2087
sm6375-common: sepolicy: Allow libperfmgr to write to proc_sched nodes
Change-Id: Ic8d9f03befb2ea5722d340d9f2b797b1cf8f0f50
2024-07-18 20:16:00 +05:30

34 lines
793 B
Text

allow hal_power_default {
vendor_sysfs_devfreq
vendor_sysfs_dt2w
vendor_sysfs_input
vendor_sysfs_msm_subsys
vendor_sysfs_sensors
vendor_sysfs_touchpanel
}:dir search;
allow hal_power_default {
cgroup
proc
proc_sched
vendor_sysfs_devfreq
sysfs_devices_system_cpu
vendor_sysfs_devfreq
vendor_sysfs_dt2w
vendor_sysfs_graphics
vendor_sysfs_kgsl
vendor_sysfs_msm_subsys
vendor_sysfs_scsi_host
vendor_sysfs_touchpanel
}:{
file
lnk_file
} rw_file_perms;
allow hal_power_default vendor_latency_device:chr_file rw_file_perms;
# Rule for hal_power_default to access graphics composer process
unix_socket_connect(hal_power_default, vendor_pps, hal_graphics_composer_default);
# To get/set powerhal state property
set_prop(hal_power_default, vendor_power_prop)