2017-12-19 00:14:33 +01:00
|
|
|
typeattribute statsd coredomain;
|
|
|
|
|
|
|
|
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.
|
2021-08-04 22:22:46 +02:00
|
|
|
allow statsd system_server:fifo_file { read write getattr };
|
|
|
|
|
|
|
|
# Allow Statsd to pipe data to privileged apps.
|
|
|
|
allow statsd priv_app:fifo_file { read write getattr };
|
2019-09-24 03:45:05 +02:00
|
|
|
|
|
|
|
# Allow statsd to retrieve SF statistics over binder
|
|
|
|
binder_call(statsd, surfaceflinger);
|
2020-11-18 04:26:23 +01:00
|
|
|
|
|
|
|
# Allow statsd to read its system properties
|
|
|
|
get_prop(statsd, device_config_statsd_native_prop)
|
|
|
|
get_prop(statsd, device_config_statsd_native_boot_prop)
|