From c0922582bc6033ef2f37169b68141bc591f09986 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 Merged-In: 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 92b517a1..fafd0642 100644 --- a/whitechapel/vendor/google/twoshay.te +++ b/whitechapel/vendor/google/twoshay.te @@ -11,3 +11,6 @@ add_service(twoshay, touch_context_service) # b/193224954 dontaudit twoshay twoshay:capability dac_override; + +allow twoshay fwk_stats_service:service_manager find; +binder_call(twoshay, stats_service_server)