From e20414a2d6f7e1fe2df9bc98265c323d878aff78 Mon Sep 17 00:00:00 2001 From: Randall Huang Date: Mon, 13 Feb 2023 17:33:12 +0800 Subject: [PATCH] Storage: fix hal_health_storage_default selinux error Bug: 264490032 Test: atest VtsHalHealthStorageTargetTest Change-Id: I953e9425f890863d2cdd10aed1efbdc1e31845c9 Signed-off-by: Randall Huang --- storage/sepolicy/hal_health_storage_default.te | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 storage/sepolicy/hal_health_storage_default.te diff --git a/storage/sepolicy/hal_health_storage_default.te b/storage/sepolicy/hal_health_storage_default.te new file mode 100644 index 0000000..af6593a --- /dev/null +++ b/storage/sepolicy/hal_health_storage_default.te @@ -0,0 +1,3 @@ +# Access to /sys/devices/platform/*ufs/* +allow hal_health_storage_default sysfs_scsi_devices_0000:dir r_dir_perms; +allow hal_health_storage_default sysfs_scsi_devices_0000:file rw_file_perms;