Skip to content
Snippets Groups Projects
Commit b68ff9f6 authored by Primiano Tucci's avatar Primiano Tucci Committed by android-build-merger
Browse files

Allow perfetto traced_probes to poll /proc/{meminfo,stat,vmstat,...}

am: 51dc7cb1

Change-Id: Id8d4363a8dd635582183d92dc5de7196e373414f
parents 2c54093f 51dc7cb1
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,15 @@ domain_auto_trans(traced_probes, atrace_exec, atrace); ...@@ -57,6 +57,15 @@ domain_auto_trans(traced_probes, atrace_exec, atrace);
# scontext=u:r:atrace:s0 tcontext=u:r:traced_probes:s0 tclass=fd # scontext=u:r:atrace:s0 tcontext=u:r:traced_probes:s0 tclass=fd
allow atrace traced_probes:fd use; allow atrace traced_probes:fd use;
# Allow traced_probes to access /proc files for system stats.
# Note: trace data is NOT exposed to anything other than shell and privileged
# system apps that have access to the traced consumer socket.
allow traced_probes {
proc_meminfo
proc_vmstat
proc_stat
}:file r_file_perms;
### ###
### Neverallow rules ### Neverallow rules
### ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment