From ad3e880a3f4cea75e7f52ce493ccb0280960b1a0 Mon Sep 17 00:00:00 2001 From: Roger Fang Date: Wed, 1 Dec 2021 15:51:16 +0800 Subject: [PATCH] sepolicy: Add suez audio sepolicy pixelstats-vend: type=1400 audit(0.0:30): avc: denied { read } for name="codec_state" dev="sysfs" ino=83880 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs_pixelstats:s0 tclass=file permissive=1 pixelstats-vend: type=1400 audit(0.0:31): avc: denied { open } for path="/sys/devices/platform/audiometrics/codec_state" dev="sysfs" ino=83880 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs_pixelstats:s0 tclass=file permissive=1 pixelstats-vend: type=1400 audit(0.0:32): avc: denied { getattr } for path="/sys/devices/platform/audiometrics/codec_state" dev="sysfs" ino=83880 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs_pixelstats:s0 tclass=file permissive=1 Bug: 206007421 Test: build passed and no avc deniel logs Signed-off-by: Roger Fang Change-Id: Ib5f5dd248e276f470e213cc053728cbf70c20dbf --- whitechapel_pro/pixelstats_vendor.te | 1 + 1 file changed, 1 insertion(+) diff --git a/whitechapel_pro/pixelstats_vendor.te b/whitechapel_pro/pixelstats_vendor.te index de08a892..392c3b1c 100644 --- a/whitechapel_pro/pixelstats_vendor.te +++ b/whitechapel_pro/pixelstats_vendor.te @@ -1,3 +1,4 @@ binder_use(pixelstats_vendor) allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms; +allow pixelstats_vendor sysfs_pixelstats:file r_file_perms;