From 53164f40de857bb9243de9957be34e2ba9cb1137 Mon Sep 17 00:00:00 2001 From: yro <yro@google.com> Date: Wed, 24 Jan 2018 11:26:14 -0800 Subject: [PATCH] Allow binder call between statsd and healthd. Also allow statsd to find health hal service for battery metrics. Test: cts test, manual test Change-Id: I73a801f6970e25bee5921479f2f7078bcb1973a9 --- private/statsd.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/private/statsd.te b/private/statsd.te index dad3c6cc5..0203bcdeb 100644 --- a/private/statsd.te +++ b/private/statsd.te @@ -28,6 +28,7 @@ allow statsd stats_data_file:file create_file_perms; # Allow statsd to make binder calls to any binder service. binder_call(statsd, appdomain) +binder_call(statsd, healthd) binder_call(statsd, incidentd) binder_call(statsd, statscompanion_service) binder_call(statsd, system_server) @@ -47,6 +48,9 @@ allow statsd { system_api_service }:service_manager find; +# Grant statsd to access health hal to access battery metrics. +allow statsd hal_health_hwservice:hwservice_manager find; + # Only statsd can publish the binder service. add_service(statsd, stats_service) -- GitLab