From 6e7338095bf93bf0b059b3228b48d9d7efed4f53 Mon Sep 17 00:00:00 2001 From: davidycchen Date: Tue, 15 Jun 2021 16:06:33 +0800 Subject: [PATCH] Allow twoshay to access fwk_stats_service and system_server avc: denied { find } for pid=813 uid=0 name=android.frameworks.stats.IStats/default scontext=u:r:twoshay:s0 tcontext=u:object_r:fwk_stats_service:s0 tclass=service_manager avc: denied { call } for scontext=u:r:twoshay:s0 tcontext=u:r:system_server:s0 tclass=binder Bug: 179334953 Test: Make selinux_policy and push related files to the device. Signed-off-by: davidycchen Change-Id: Ib95debbc9ce10919c5f935e8f70b340bb293b54a --- whitechapel/vendor/google/twoshay.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/whitechapel/vendor/google/twoshay.te b/whitechapel/vendor/google/twoshay.te index ad239702..f940d3aa 100644 --- a/whitechapel/vendor/google/twoshay.te +++ b/whitechapel/vendor/google/twoshay.te @@ -8,3 +8,6 @@ allow twoshay twoshay:capability sys_nice; binder_use(twoshay) add_service(twoshay, touch_context_service) + +allow twoshay fwk_stats_service:service_manager find; +binder_call(twoshay, stats_service_server)