• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1typeattribute statsd coredomain;
2typeattribute statsd stats_service_server;
3
4init_daemon_domain(statsd)
5
6binder_call(statsd, statscompanion_service)
7
8# Allow to exec the perfetto cmdline client and pass it the trace config on
9# stdint through a pipe. It allows statsd to  capture traces and hand them
10# to Android dropbox.
11allow statsd perfetto_exec:file rx_file_perms;
12domain_auto_trans(statsd, perfetto_exec, perfetto)
13
14# Grant statsd with permissions to register the services.
15allow statsd {
16  statscompanion_service
17}:service_manager find;
18
19# Allow incidentd to obtain the statsd incident section.
20allow statsd incidentd:fifo_file write;
21