Silence error when traced_probes invokes atrace with pipes am: 6872b1db69

Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1998990

Change-Id: I4ce4bb1bd4ec6c745e7cbe4add540432a95746d8
This commit is contained in:
Daniele Di Proietto 2022-02-24 15:47:43 +00:00 committed by Automerger Merge Worker
commit 60f6de3137

View file

@ -12,10 +12,10 @@ allow atrace debugfs_tracing:dir r_dir_perms;
allow atrace debugfs_tracing:file rw_file_perms; allow atrace debugfs_tracing:file rw_file_perms;
allow atrace debugfs_trace_marker:file getattr; allow atrace debugfs_trace_marker:file getattr;
# Allow atrace to write data when a pipe is used for stdout/stderr # Allow atrace to write data when a pipe is used for stdout/stderr.
# This is used by Perfetto to capture the output on error in atrace. # This is used by Perfetto to capture atrace stdout/stderr.
allow atrace traced_probes:fd use; allow atrace traced_probes:fd use;
allow atrace traced_probes:fifo_file write; allow atrace traced_probes:fifo_file { getattr write };
# atrace sets debug.atrace.* properties # atrace sets debug.atrace.* properties
set_prop(atrace, debug_prop) set_prop(atrace, debug_prop)