Files
device_xiaomi_rosemary/sepolicy/vendor/hal_power_default.te
Vaisakh Murali 8d72ba4fed rosemary: Rename all powerhal props to avoid sepolicy conflicts
MTK labels the vendor.powerhal prop as with their own context, but
using the same contexts leads to more error. Instead switch to a
different prop naming which will not conflict with MTK context.

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I1dd8f85a4170917bcd8dacbef4f5086931bc7352
2023-04-25 17:59:38 +02:00

18 lines
664 B
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;