android_device_samsung_univ.../sepolicy/hal_power_default.te
Hendra Manudinata f0e4521a9f
universal7570: import sepolicy from 7870
The sepolicy before seems to be broken

Change-Id: I890a28429f03e47a183a0a0b755987f3495994c3
2021-03-13 05:09:06 +07:00

19 lines
656 B
Text

# Allow reading of sysfs nodes to find input devices
allow hal_power_default sysfs:dir r_dir_perms;
allow hal_power_default sysfs:file r_file_perms;
# Input devices
allow hal_power_default sysfs_input:dir r_dir_perms;
allow hal_power_default sysfs_input:file rw_file_perms;
# CPU devices
allow hal_power_default sysfs_devices_system_cpu:dir search;
allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
# Lights
allow hal_power_default sysfs_light:dir search;
allow hal_power_default sysfs_light:file rw_file_perms;
# Graphics
allow hal_power_default sysfs_graphics:dir search;
allow hal_power_default sysfs_graphics:file rw_file_perms;