aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBookatz2018-04-12 11:14:27 -0500
committerBookatz2018-04-12 11:34:00 -0500
commit1300945c1258b42f643727ff86f8342be5da585c (patch)
tree7d65e115cdc128e3bea9c1090adde8a631fa2926
parent45c72ddfcf2eb6f40b4b77600533576c8b02e452 (diff)
downloadsystem-sepolicy-1300945c1258b42f643727ff86f8342be5da585c.tar.gz
system-sepolicy-1300945c1258b42f643727ff86f8342be5da585c.tar.xz
system-sepolicy-1300945c1258b42f643727ff86f8342be5da585c.zip
Statsd sepolicy hal_health
Statsd monitors battery capacity, which requires calls to the health hal. Fixes: 77923174 Bug: 77916472 Test: run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.atom.HostAtomTests#testFullBatteryCapacity Change-Id: I2d6685d4b91d8fbc7422dfdd0b6ed96bbddc0886
-rw-r--r--private/statsd.te1
1 files changed, 1 insertions, 0 deletions
diff --git a/private/statsd.te b/private/statsd.te
index fec10a4b..06d6e01e 100644
--- a/private/statsd.te
+++ b/private/statsd.te
@@ -73,6 +73,7 @@ binder_call(statsd, stats)
73 73
74# Allow access to with hardware layer and process stats. 74# Allow access to with hardware layer and process stats.
75allow statsd proc_uid_cputime_showstat:file { getattr open read }; 75allow statsd proc_uid_cputime_showstat:file { getattr open read };
76hal_client_domain(statsd, hal_health)
76hal_client_domain(statsd, hal_power) 77hal_client_domain(statsd, hal_power)
77hal_client_domain(statsd, hal_thermal) 78hal_client_domain(statsd, hal_thermal)
78 79