platform_system_sepolicy/private/traceur_app.te
Kean Mariotti 7cce6f5ea0 Allow traceur_app to access winscope traces
Bug: 295816837
Test: capture winscope traces with Traceur
Change-Id: I22a89578ed8f192764b832789f2a2f5f012d77b1
2023-08-21 07:13:42 +00:00

26 lines
912 B
Text

typeattribute traceur_app coredomain;
app_domain(traceur_app);
allow traceur_app debugfs_tracing:file rw_file_perms;
allow traceur_app debugfs_tracing_debug:dir r_dir_perms;
userdebug_or_eng(`
allow traceur_app debugfs_tracing_debug:file rw_file_perms;
')
allow traceur_app trace_data_file:file create_file_perms;
allow traceur_app trace_data_file:dir rw_dir_perms;
allow traceur_app wm_trace_data_file:dir rw_dir_perms;
allow traceur_app wm_trace_data_file:file { getattr r_file_perms unlink };
allow traceur_app atrace_exec:file rx_file_perms;
# To exec the perfetto cmdline client and pass it the trace config on
# stdint through a pipe.
allow traceur_app perfetto_exec:file rx_file_perms;
# Allow to access traced's privileged consumer socket.
unix_socket_connect(traceur_app, traced_consumer, traced)
dontaudit traceur_app debugfs_tracing_debug:file audit_access;
set_prop(traceur_app, debug_prop)