summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenny Ho <hsiufangho@google.com>2023-12-13 15:27:23 +0800
committerJenny Ho <hsiufangho@google.com>2023-12-13 07:31:13 +0000
commit04bc1d210a874f0e90d93bd65048091da8fe9ee0 (patch)
tree3df1629182c6877d5eee1fcad242126b6841e1cc
parentea3f55a02626956e2111fd00741d32469b43dcc6 (diff)
downloadgs201-sepolicy-04bc1d210a874f0e90d93bd65048091da8fe9ee0.tar.gz
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 <hsiufangho@google.com>
-rw-r--r--whitechapel_pro/hal_health_default.te1
1 files changed, 1 insertions, 0 deletions
diff --git a/whitechapel_pro/hal_health_default.te b/whitechapel_pro/hal_health_default.te
index fbbad6b..805b707 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;