diff --git a/private/dumpstate.te b/private/dumpstate.te index 24a57de96d0cf29f95f020990d52020327b3d76f..4c77b7938ac51d72e87e3f973dc62daa218765b4 100644 --- a/private/dumpstate.te +++ b/private/dumpstate.te @@ -27,5 +27,8 @@ userdebug_or_eng(` # Allow dumpstate to make binder calls to storaged service binder_call(dumpstate, storaged) +# Allow dumpstate to make binder calls to statsd +binder_call(dumpstate, statsd) + # Collect metrics on boot time created by init get_prop(dumpstate, boottime_prop) diff --git a/private/statsd.te b/private/statsd.te index fee1881c7b8e627941a603377ba3cf5dec285089..b04a7da38de0882f8208d745b08fe05b8a35fef2 100644 --- a/private/statsd.te +++ b/private/statsd.te @@ -53,6 +53,10 @@ add_service(statsd, stats_service) allow statsd stats:fd use; allow statsd stats:fifo_file write; +# Allow statsd to send dump info to dumpstate +allow statsd dumpstate:fd use; +allow statsd dumpstate:fifo_file { getattr write }; + # Allow statsd to call back to stats with status updates. binder_call(statsd, stats)