Inseob Kim | ff43be2 | 2021-06-07 16:56:56 +0900 | [diff] [blame] | 1 | typeattribute statsd coredomain; |
| 2 | |
| 3 | init_daemon_domain(statsd) |
| 4 | |
| 5 | # Allow to exec the perfetto cmdline client and pass it the trace config on |
| 6 | # stdint through a pipe. It allows statsd to capture traces and hand them |
| 7 | # to Android dropbox. |
| 8 | allow statsd perfetto_exec:file rx_file_perms; |
| 9 | domain_auto_trans(statsd, perfetto_exec, perfetto) |
| 10 | |
| 11 | # Grant statsd with permissions to register the services. |
| 12 | allow statsd { |
| 13 | statscompanion_service |
| 14 | }:service_manager find; |
| 15 | |
| 16 | # Allow incidentd to obtain the statsd incident section. |
| 17 | allow statsd incidentd:fifo_file write; |
| 18 | |
| 19 | # Allow StatsCompanionService to pipe data to statsd. |
| 20 | allow statsd system_server:fifo_file { read getattr }; |
| 21 | |
| 22 | # Allow statsd to retrieve SF statistics over binder |
| 23 | binder_call(statsd, surfaceflinger); |
| 24 | |
| 25 | # Allow statsd to read its system properties |
| 26 | get_prop(statsd, device_config_statsd_native_prop) |
| 27 | get_prop(statsd, device_config_statsd_native_boot_prop) |