android_device_samsung_msm8.../sepolicy/hal_power_default.te
Deokgyu Yang dd8af22d97 SELinux: hwservice: Add type for hal_miscpower
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I02f15eba26d9491ff694e6076c0fa4d90a5532a0
2021-05-13 17:50:24 +09:00

11 lines
512 B
Text

add_hwservice(hal_power_default, hal_miscpower_hwservice)
# Allow writing to files in /proc/touchpanel
allow hal_power_default proc_touchpanel:dir search;
allow hal_power_default proc_touchpanel:file rw_file_perms;
allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
allow hal_power_default sysfs_batteryinfo:dir r_dir_perms;
allow hal_power_default sysfs_batteryinfo:file rw_file_perms;
allow hal_power_default sysfs_tsp:dir r_dir_perms;
allow hal_power_default sysfs_tsp:file rw_file_perms;