Files
device_xiaomi_miatoll/sepolicy/vendor/hal_power_default.te
Alex Hong 363fbefd2a sm6250-common: sepolicy: Solve the naming problem for vendor property
Bug: 158720266
Test: Build selinux modules successfully
Change-Id: I01a83a7828d34db982db60bbf307c81fc12c7939
2022-08-26 18:27:15 +00:00

35 lines
856 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;
r_dir_file(hal_power_default, input_device)
allow hal_power_default {
vendor_sysfs_devfreq
sysfs_msm_subsys
sysfs_touchpanel
}:dir search;
allow hal_power_default {
cgroup
proc
vendor_sysfs_devfreq
sysfs_devices_system_cpu
vendor_sysfs_graphics
vendor_sysfs_kgsl
sysfs_msm_subsys
sysfs_touchpanel
vendor_sysfs_scsi_host
}:{
file
lnk_file
} rw_file_perms;
allow hal_power_default vendor_latency_device:chr_file rw_file_perms;
# Rule for hal_power_default to access graphics composer process
unix_socket_connect(hal_power_default, vendor_pps, hal_graphics_composer_default);
# To get/set powerhal state property
set_prop(hal_power_default, vendor_power_prop)