From 04bc1d210a874f0e90d93bd65048091da8fe9ee0 Mon Sep 17 00:00:00 2001 From: Jenny Ho Date: Wed, 13 Dec 2023 15:27:23 +0800 Subject: [PATCH] sepolicy: add read wlc sysfs permission 12-12 18:33:17.960000 1000 906 906 I auditd : type=1400 audit(0.0:10): avc: denied { read } for comm="android.hardwar" name="type" dev="sysfs" ino=75851 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs_wlc:s0 tclass=file permissive=0 Bug: 306534100 Change-Id: I3381aaa1e08637c1cc8eb278bd775c81b32ed3bd Signed-off-by: Jenny Ho --- whitechapel_pro/hal_health_default.te | 1 + 1 file changed, 1 insertion(+) diff --git a/whitechapel_pro/hal_health_default.te b/whitechapel_pro/hal_health_default.te index fbbad6bb..805b707d 100644 --- a/whitechapel_pro/hal_health_default.te +++ b/whitechapel_pro/hal_health_default.te @@ -18,3 +18,4 @@ allow hal_health_default sysfs_batteryinfo:file w_file_perms; allow hal_health_default sysfs_thermal:dir search; allow hal_health_default sysfs_thermal:file w_file_perms; allow hal_health_default thermal_link_device:dir search; +allow hal_health_default sysfs_wlc:file r_file_perms;