diff options
Diffstat (limited to 'prebuilts/api/32.0/private/traceur_app.te')
-rw-r--r-- | prebuilts/api/32.0/private/traceur_app.te | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/prebuilts/api/32.0/private/traceur_app.te b/prebuilts/api/32.0/private/traceur_app.te new file mode 100644 index 000000000..2937e269b --- /dev/null +++ b/prebuilts/api/32.0/private/traceur_app.te @@ -0,0 +1,24 @@ +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 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) |