summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Chen <chenkris@google.com>2023-08-17 20:27:22 +0800
committerKRIS CHEN <chenkris@google.com>2023-08-17 12:59:19 +0000
commitc9d21c380f12a25c6fbae90f15755fd1dab559c6 (patch)
tree74cc60132f3e1539ff6f8a0b527c040685bd9e50
parent0f46a31902e3dba0765c43e2be7f3482bcf4dd04 (diff)
downloadzuma-sepolicy-c9d21c380f12a25c6fbae90f15755fd1dab559c6.tar.gz
Allow hal_power_default to access sysfs_scsi_devices_0000
Fix the following avc denial: avc: denied { write } for name="clkgate_enable" dev="sysfs" ino=69304 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs_scsi_devices_0000:s0 tclass=file permissive=0 Bug: 290709897 Test: enroll fingerprint Change-Id: Ib153087839d59e1839ceed4373a9be6f42e89619
-rw-r--r--vendor/hal_power_default.te1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/hal_power_default.te b/vendor/hal_power_default.te
index 64521fb..1f0cd3a 100644
--- a/vendor/hal_power_default.te
+++ b/vendor/hal_power_default.te
@@ -5,4 +5,5 @@ allow hal_power_default sysfs_em_profile:file rw_file_perms;
allow hal_power_default sysfs_display:file rw_file_perms;
allow hal_power_default sysfs_trusty:file rw_file_perms;
allow hal_power_default sysfs_ospm:file rw_file_perms;
+allow hal_power_default sysfs_scsi_devices_0000:file rw_file_perms;
set_prop(hal_power_default, vendor_camera_prop);