Subhajeet Muhuri 9dabc4c180 sm6250-common: Kang sepolicy for libperfmgr and powerstats from sunfish
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>

 Conflicts:
	sepolicy/vendor/file_contexts
2020-08-31 11:15:05 +03:00

17 lines
619 B
Plaintext

# Allow hal_power_default to write to dt2w nodes
allow hal_power_default input_device:dir r_dir_perms;
allow hal_power_default input_device:chr_file rw_file_perms;
# To get/set powerhal state property
set_prop(hal_power_default, power_prop)
allow hal_power_default {
sysfs_devices_system_cpu
sysfs_msm_subsys
proc_sched_energy_aware
}:file rw_file_perms;
allow hal_power_default sysfs_msm_subsys:dir search;
allow hal_power_default latency_device:chr_file rw_file_perms;
# The following folder is incidentally accessed by hal_power_default and is not needed.
dontaudit hal_power_default cgroup:file read;