Pixel-EM-DriverV2: sepolicy: allows Power HAL to
modify em_profile related sysfs nodes Bug: 170647767 Signed-off-by: Taeju Park <taeju@google.com> Change-Id: I160741f172a5713535852e7fb0d12126ddf0395e
This commit is contained in:
parent
ee92ac374a
commit
eb4d432dd8
3 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,9 @@ type vendor_fw_file, vendor_file_type, file_type;
|
||||||
# Trusty
|
# Trusty
|
||||||
type sysfs_trusty, sysfs_type, fs_type;
|
type sysfs_trusty, sysfs_type, fs_type;
|
||||||
|
|
||||||
|
# EM Profile
|
||||||
|
type sysfs_em_profile, sysfs_type, fs_type;
|
||||||
|
|
||||||
# sysfs
|
# sysfs
|
||||||
type sysfs_chosen, sysfs_type, fs_type;
|
type sysfs_chosen, sysfs_type, fs_type;
|
||||||
type sysfs_ota, sysfs_type, fs_type;
|
type sysfs_ota, sysfs_type, fs_type;
|
||||||
|
|
|
@ -376,3 +376,6 @@ genfscon sysfs /devices/platform/2bf40000.etm u:object_r:sysfs_devices_cs_etm
|
||||||
# Trusty
|
# Trusty
|
||||||
genfscon sysfs /module/trusty_virtio/parameters/use_high_wq u:object_r:sysfs_trusty:s0
|
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
|
genfscon sysfs /module/trusty_core/parameters/use_high_wq u:object_r:sysfs_trusty:s0
|
||||||
|
|
||||||
|
# EM Profile
|
||||||
|
genfscon sysfs /kernel/pixel_em/active_profile u:object_r:sysfs_em_profile:s0
|
||||||
|
|
|
@ -7,4 +7,5 @@ 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_fabric:file rw_file_perms;
|
||||||
allow hal_power_default sysfs_camera:file rw_file_perms;
|
allow hal_power_default sysfs_camera:file rw_file_perms;
|
||||||
allow hal_power_default sysfs_trusty:file rw_file_perms;
|
allow hal_power_default sysfs_trusty:file rw_file_perms;
|
||||||
|
allow hal_power_default sysfs_em_profile:file rw_file_perms;
|
||||||
set_prop(hal_power_default, vendor_camera_prop)
|
set_prop(hal_power_default, vendor_camera_prop)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue