2017-12-19 00:14:33 +01:00
|
|
|
typeattribute statsd coredomain;
|
2019-04-22 19:09:38 +02:00
|
|
|
typeattribute statsd stats_service_server;
|
2017-12-19 00:14:33 +01:00
|
|
|
|
|
|
|
init_daemon_domain(statsd)
|
|
|
|
|
2018-01-24 17:07:09 +01:00
|
|
|
# Allow to exec the perfetto cmdline client and pass it the trace config on
|
|
|
|
# stdint through a pipe. It allows statsd to capture traces and hand them
|
|
|
|
# to Android dropbox.
|
|
|
|
allow statsd perfetto_exec:file rx_file_perms;
|
|
|
|
domain_auto_trans(statsd, perfetto_exec, perfetto)
|
2017-12-21 03:51:15 +01:00
|
|
|
|
2017-12-19 00:14:33 +01:00
|
|
|
# Grant statsd with permissions to register the services.
|
|
|
|
allow statsd {
|
2018-01-22 22:56:41 +01:00
|
|
|
statscompanion_service
|
2017-12-19 00:14:33 +01:00
|
|
|
}:service_manager find;
|
2018-11-06 00:01:39 +01:00
|
|
|
|
|
|
|
# Allow incidentd to obtain the statsd incident section.
|
|
|
|
allow statsd incidentd:fifo_file write;
|
2019-05-17 22:12:36 +02:00
|
|
|
|
|
|
|
# Allow StatsCompanionService to pipe data to statsd.
|
|
|
|
allow statsd system_server:fifo_file { read getattr };
|