device_xiaomi_sm6150-common/sepolicy/vendor/hal_power_default.te
Inseob Kim 87b0b914b1 sm6150-common: sepolicy: Attach vendor_property_type to properties
We are going to enforce that each property has an explicit owner, such
as system, vendor, or product. This attaches vendor_property_type to
properties defined under vendor sepolicy directories.

Bug: 159097992
Test: m selinux_policy && boot device
Change-Id: Ibed833cd9e5d786e82985ded6bc62abdf8cd9ded
Merged-In: Ibed833cd9e5d786e82985ded6bc62abdf8cd9ded
(cherry picked from commit 44eb8e1f89adf04fd413a69391fd444ba68af742)
(cherry picked from commit 1922128397116d551a663d5344b4456a84bf46eb)
2021-12-29 10:18:50 +00:00

19 lines
848 B
Plaintext

type proc_sched_energy_aware, proc_type, fs_type;
vendor_internal_prop(vendor_power_prop)
allow hal_power_default touchfeature_device:chr_file rw_file_perms;
# To do powerhint on nodes defined in powerhint.json
allow hal_power_default cgroup:dir search;
allow hal_power_default cgroup:file rw_file_perms;
allow hal_power_default proc_sched_energy_aware:file rw_file_perms;
allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
allow hal_power_default vendor_latency_device:chr_file rw_file_perms;
allow hal_power_default vendor_sysfs_devfreq:dir search;
allow hal_power_default vendor_sysfs_devfreq:file rw_file_perms;
allow hal_power_default vendor_sysfs_kgsl:file rw_file_perms;
allow hal_power_default vendor_sysfs_graphics:file r_file_perms;
# To get/set powerhal state property
set_prop(hal_power_default, vendor_power_prop)