From 68ffcb774d50d951d57983537ecb50ffdbd03aca Mon Sep 17 00:00:00 2001 From: Randall Huang Date: Tue, 23 Nov 2021 11:08:27 +0800 Subject: [PATCH] Fix health HAL avc denied when running idle-maint Log: avc: denied { read } for comm="android.hardwar" name="wb_avail_buf" dev="sysfs" ino=59061 scontext=u:r:hal_health_storage_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 Bug: 206741894 Test: adb shell sm idle-maint run Signed-off-by: Randall Huang Change-Id: I79e7763df16816e6799f288d2f8b7e26c204cbc4 --- whitechapel/vendor/google/genfs_contexts | 1 + 1 file changed, 1 insertion(+) diff --git a/whitechapel/vendor/google/genfs_contexts b/whitechapel/vendor/google/genfs_contexts index 9addc141..3f888564 100644 --- a/whitechapel/vendor/google/genfs_contexts +++ b/whitechapel/vendor/google/genfs_contexts @@ -63,6 +63,7 @@ genfscon sysfs /devices/platform/14700000.ufs/hibern8_on_idle_enable u:object genfscon sysfs /devices/platform/14700000.ufs/health_descriptor u:object_r:sysfs_scsi_devices_0000:s0 genfscon sysfs /devices/platform/14700000.ufs/host0/target0:0:0/0:0:0: u:object_r:sysfs_scsi_devices_0000:s0 genfscon sysfs /devices/platform/14700000.ufs/ufs_stats u:object_r:sysfs_scsi_devices_0000:s0 +genfscon sysfs /devices/platform/14700000.ufs/attributes/wb_avail_buf u:object_r:sysfs_scsi_devices_0000:s0 # Networking / Tethering genfscon sysfs /devices/platform/10d30000.spi/spi_master/spi10/spi10.0/ieee802154/phy0/net u:object_r:sysfs_net:s0