Merge "Grant trusty to power hal" into tm-dev

This commit is contained in:
Wei Wang 2022-04-26 16:47:14 +00:00 committed by Android (Google) Code Review
commit 5e9a38799a
3 changed files with 8 additions and 0 deletions

View file

@ -203,3 +203,6 @@ userdebug_or_eng(`
# SecureElement # SecureElement
type sysfs_st33spi, sysfs_type, fs_type; type sysfs_st33spi, sysfs_type, fs_type;
# Trusty
type sysfs_trusty, sysfs_type, fs_type;

View file

@ -475,6 +475,10 @@ genfscon sysfs /devices/platform/100b0000.G3D u:obje
genfscon sysfs /devices/platform/100b0000.ISP u:object_r:sysfs_thermal:s0 genfscon sysfs /devices/platform/100b0000.ISP u:object_r:sysfs_thermal:s0
genfscon sysfs /devices/platform/100b0000.TPU u:object_r:sysfs_thermal:s0 genfscon sysfs /devices/platform/100b0000.TPU u:object_r:sysfs_thermal: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
# Coresight ETM # Coresight ETM
genfscon sysfs /devices/platform/25840000.etm u:object_r:sysfs_devices_cs_etm:s0 genfscon sysfs /devices/platform/25840000.etm u:object_r:sysfs_devices_cs_etm:s0
genfscon sysfs /devices/platform/25940000.etm u:object_r:sysfs_devices_cs_etm:s0 genfscon sysfs /devices/platform/25940000.etm u:object_r:sysfs_devices_cs_etm:s0

View file

@ -10,6 +10,7 @@ allow hal_power_default sysfs_camera:file rw_file_perms;
allow hal_power_default sysfs_display:file rw_file_perms; allow hal_power_default sysfs_display:file rw_file_perms;
allow hal_power_default sysfs_bcl:dir r_dir_perms; allow hal_power_default sysfs_bcl:dir r_dir_perms;
allow hal_power_default sysfs_bcl:file rw_file_perms; allow hal_power_default sysfs_bcl:file rw_file_perms;
allow hal_power_default sysfs_trusty:file rw_file_perms;
set_prop(hal_power_default, vendor_camera_prop) set_prop(hal_power_default, vendor_camera_prop)
set_prop(hal_power_default, vendor_camera_debug_prop) set_prop(hal_power_default, vendor_camera_debug_prop)
set_prop(hal_power_default, vendor_camera_fatp_prop) set_prop(hal_power_default, vendor_camera_fatp_prop)