From 90f4106b80ab47ab38265c8816d5bd26b2a59bfd Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Sat, 23 Apr 2022 21:09:22 -0700 Subject: [PATCH] Grant trusty to power hal Bug: 229350721 Test: UDFPS with stress Signed-off-by: Wei Wang Change-Id: Ia88d6cff1d21940e22ae5122dbfcf52de27ad700 --- whitechapel_pro/file.te | 3 +++ whitechapel_pro/genfs_contexts | 4 ++++ whitechapel_pro/hal_power_default.te | 1 + 3 files changed, 8 insertions(+) diff --git a/whitechapel_pro/file.te b/whitechapel_pro/file.te index 61511765..a9f38963 100644 --- a/whitechapel_pro/file.te +++ b/whitechapel_pro/file.te @@ -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; diff --git a/whitechapel_pro/genfs_contexts b/whitechapel_pro/genfs_contexts index 73872f40..cac716b9 100644 --- a/whitechapel_pro/genfs_contexts +++ b/whitechapel_pro/genfs_contexts @@ -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 diff --git a/whitechapel_pro/hal_power_default.te b/whitechapel_pro/hal_power_default.te index 076de46b..807d9a47 100644 --- a/whitechapel_pro/hal_power_default.te +++ b/whitechapel_pro/hal_power_default.te @@ -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)