Grant trusty to power hal

Bug: 229350721
Test: UDFPS with stress
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ia88d6cff1d21940e22ae5122dbfcf52de27ad700
This commit is contained in:
Wei Wang 2022-04-23 21:09:22 -07:00
parent a36285b0de
commit 90f4106b80
3 changed files with 8 additions and 0 deletions

View file

@ -24,6 +24,9 @@ userdebug_or_eng(`
# Exynos Firmware
type vendor_fw_file, vendor_file_type, file_type;
# Trusty
type sysfs_trusty, sysfs_type, fs_type;
# sysfs
type sysfs_chosen, sysfs_type, fs_type;
type sysfs_ota, sysfs_type, fs_type;

View file

@ -375,3 +375,7 @@ genfscon sysfs /devices/platform/2bc40000.etm u:object_r:sysfs_devices_cs_etm
genfscon sysfs /devices/platform/2bd40000.etm u:object_r:sysfs_devices_cs_etm:s0
genfscon sysfs /devices/platform/2be40000.etm u:object_r:sysfs_devices_cs_etm:s0
genfscon sysfs /devices/platform/2bf40000.etm u:object_r:sysfs_devices_cs_etm:s0
# Trusty
genfscon sysfs /module/trusty_virtio/parameters/use_high_wq u:object_r:sysfs_trusty:s0
genfscon sysfs /module/trusty_core/parameters/use_high_wq u:object_r:sysfs_trusty:s0

View file

@ -6,4 +6,5 @@ allow hal_power_default proc_vendor_sched:file r_file_perms;
allow hal_power_default sysfs_gpu:file rw_file_perms;
allow hal_power_default sysfs_fabric:file rw_file_perms;
allow hal_power_default sysfs_camera:file rw_file_perms;
allow hal_power_default sysfs_trusty:file rw_file_perms;
set_prop(hal_power_default, vendor_camera_prop)