From 1f72ffdec6dd1edf94fe13f38317f03cd4316f03 Mon Sep 17 00:00:00 2001 From: SalmaxChang Date: Wed, 9 Mar 2022 10:21:40 +0800 Subject: [PATCH] incident: Fix avc errors avc: denied { use } for comm="incident" dev="dm-47" ino=10911 scontext=u:r:incident:s0 tcontext=u:r:logger_app:s0:c239,c256,c512,c768 tclass=fd avc: denied { append } for dev="dm-7" ino=12639 scontext=u:r:incident:s0 tcontext=u:object_r:media_rw_data_file:s0:c30,c257,c512,c768 tclass=file Bug: 222209243 Change-Id: I9e622e2af1a036eab818cd2b66c07b137fe9cc99 --- whitechapel_pro/incident.te | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 whitechapel_pro/incident.te diff --git a/whitechapel_pro/incident.te b/whitechapel_pro/incident.te new file mode 100644 index 00000000..672606df --- /dev/null +++ b/whitechapel_pro/incident.te @@ -0,0 +1,4 @@ +userdebug_or_eng(` + allow incident logger_app:fd use; + allow incident media_rw_data_file:file append; +')