device_lenovo_sdm710-common/sepolicy/private/hal_power_pixel.te

54 lines
2.1 KiB
Text
Raw Normal View History

type hal_power_pixel, coredomain, domain;
hal_server_domain(hal_power_pixel, hal_power)
type hal_power_pixel_exec, system_file_type, exec_type, file_type;
init_daemon_domain(hal_power_pixel)
# Allow hal_power_pixel to write to dt2w nodes
allow hal_power_pixel proc_touchpanel:dir search;
allow hal_power_pixel proc_touchpanel:file w_file_perms;
allow hal_power_pixel debugfs_wlan:dir r_dir_perms;
allow hal_power_pixel debugfs_wlan:file r_file_perms;
allow hal_power_pixel self:capability dac_override;
allow hal_power_pixel system_file:file r_file_perms;
allow hal_power_pixel sysfs_graphics:dir search;
allow hal_power_pixel sysfs_graphics:file r_file_perms;
allow hal_power_pixel sysfs_rpm:file r_file_perms;
allow hal_power_pixel sysfs_system_sleep_stats:file r_file_perms;
r_dir_file(hal_power, sysfs_tp)
allow hal_power_pixel sysfs_tp:file write;
# To do powerhint on nodes defined in powerhint.json
allow hal_power_pixel sysfs_devfreq:dir search;
allow hal_power_pixel sysfs_devfreq:{ file lnk_file } rw_file_perms;
allow hal_power_pixel sysfs_scsi_devices:dir search;
allow hal_power_pixel sysfs_scsi_devices:{ file lnk_file } rw_file_perms;
allow hal_power_pixel sysfs_kgsl:dir search;
allow hal_power_pixel sysfs_kgsl:{ file lnk_file } rw_file_perms;
allow hal_power_pixel sysfs_msm_subsys:dir search;
allow hal_power_pixel sysfs_msm_subsys:file rw_file_perms;
allow hal_power_pixel sysfs_devices_system_cpu:file rw_file_perms;
allow hal_power_pixel device_latency:chr_file rw_file_perms;
allow hal_power_pixel proc_sysctl_schedboost:file rw_file_perms;
allow hal_power_pixel debugfs_sched_features:dir search;
allow hal_power_pixel debugfs_sched_features:file rw_file_perms;
allow hal_power_pixel input_device:dir search;
allow hal_power_pixel input_device:chr_file rw_file_perms;
allow hal_power_pixel hal_power_hwservice:hwservice_manager add;
allow hal_power_pixel hidl_base_hwservice:hwservice_manager add;
binder_call(hal_power_pixel, hwservicemanager)
binder_call(hal_power_pixel, hal_audio)
# To get hwservicemanager state
get_prop(hal_power_pixel, hwservicemanager_prop)
# To get/set powerhal state property
set_prop(hal_power_pixel, vendor_power_prop)