blob: f8dd24f18741db5b8f381b98cd96f38454c4e8f3 [file] [log] [blame]
Nikita Ioffe6069e7c2023-03-03 00:43:22 +00001# 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
5type atrace, domain, coredomain;
6type 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.
10allow atrace traced_probes:fd use;
11allow atrace traced_probes:fifo_file { getattr write };