Nikita Ioffe | 6069e7c | 2023-03-03 00:43:22 +0000 | [diff] [blame] | 1 | # SELinux policy for the atrace daemon running inside Microdroid. |
| 2 | # For the host Android policy check system/sepolicy/private/atrace.te |
| 3 | # So far, this file contains a subset of rules defined for the host Android. |
| 4 | |
| 5 | type atrace, domain, coredomain; |
| 6 | type atrace_exec, exec_type, file_type, system_file_type; |
| 7 | |
| 8 | # Allow atrace to write data when a pipe is used for stdout/stderr. |
| 9 | # This is used by Perfetto to capture atrace stdout/stderr. |
| 10 | allow atrace traced_probes:fd use; |
| 11 | allow atrace traced_probes:fifo_file { getattr write }; |