zumapro: sepolicy: update ospm selinux settings.
Use the similar setting from zuma: ag/23270943 and ag/22980665 Bug: 300516041 Test: Power hal works without related avc errors. Change-Id: I45fb13299f153f0f472e21f54af393147c7fbd7c
This commit is contained in:
parent
2dc63cb5cd
commit
6c797e281a
3 changed files with 6 additions and 2 deletions
1
vendor/file.te
vendored
1
vendor/file.te
vendored
|
@ -3,6 +3,7 @@ type persist_uwb_file, file_type, vendor_persist_type;
|
|||
|
||||
#sysfs
|
||||
type sysfs_pca, sysfs_type, fs_type;
|
||||
type sysfs_ospm, sysfs_type, fs_type;
|
||||
|
||||
# debugfs
|
||||
type vendor_regmap_debugfs, fs_type, debugfs_type;
|
||||
|
|
6
vendor/genfs_contexts
vendored
6
vendor/genfs_contexts
vendored
|
@ -16,6 +16,7 @@ genfscon sysfs /devices/platform/1f000000.mali/dma_buf_gpu_mem u:obje
|
|||
genfscon sysfs /devices/platform/1f000000.mali/total_gpu_mem u:object_r:sysfs_gpu:s0
|
||||
genfscon sysfs /devices/platform/1f000000.mali/kprcs u:object_r:sysfs_gpu:s0
|
||||
genfscon sysfs /devices/platform/1f000000.mali/dvfs_period u:object_r:sysfs_gpu:s0
|
||||
genfscon sysfs /devices/platform/1f000000.mali/cur_freq u:object_r:sysfs_gpu:s0
|
||||
|
||||
# Haptics
|
||||
genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-9/9-0043 u:object_r:sysfs_vibrator:s0
|
||||
|
@ -30,8 +31,9 @@ genfscon sysfs /devices/platform/17000000.aoc/usb_control/wakeup
|
|||
genfscon sysfs /devices/platform/108d0000.hsi2c/i2c-6/6-0025/power_supply/usb/power/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-11/11-0025/power_supply/usb/power/wakeup u:object_r:sysfs_wakeup:s0
|
||||
|
||||
# GPU
|
||||
genfscon sysfs /devices/platform/1f000000.mali/cur_freq u:object_r:sysfs_gpu:s0
|
||||
# OSPM
|
||||
genfscon sysfs /devices/platform/cpupm/cpupm/cpd_cl1_target_residency u:object_r:sysfs_ospm:s0
|
||||
genfscon sysfs /devices/platform/cpupm/cpupm/cpd_cl2_target_residency u:object_r:sysfs_ospm:s0
|
||||
|
||||
# Power ODPM
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@15500000/i2c-7/7-001f/s2mpg14-meter/s2mpg14-odpm/iio:device1/in_power0_scale u:object_r:sysfs_odpm:s0
|
||||
|
|
1
vendor/hal_power_default.te
vendored
Normal file
1
vendor/hal_power_default.te
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
allow hal_power_default sysfs_ospm:file rw_file_perms;
|
Loading…
Add table
Add a link
Reference in a new issue