2017-12-11 16:19:23 -08:00
|
|
|
typeattribute traceur_app coredomain;
|
|
|
|
|
2018-01-09 12:24:47 -08:00
|
|
|
app_domain(traceur_app);
|
|
|
|
allow traceur_app debugfs_tracing:file rw_file_perms;
|
2018-01-30 18:14:45 -08:00
|
|
|
allow traceur_app debugfs_tracing_debug:dir r_dir_perms;
|
2018-01-09 12:24:47 -08:00
|
|
|
|
2017-12-11 16:19:23 -08:00
|
|
|
userdebug_or_eng(`
|
2018-01-15 16:44:04 -08:00
|
|
|
allow traceur_app debugfs_tracing_debug:file rw_file_perms;
|
2017-12-11 16:19:23 -08:00
|
|
|
')
|
2018-01-09 12:24:47 -08:00
|
|
|
|
|
|
|
allow traceur_app trace_data_file:file create_file_perms;
|
2018-02-20 14:47:08 -08:00
|
|
|
allow traceur_app trace_data_file:dir rw_dir_perms;
|
2018-01-09 12:24:47 -08:00
|
|
|
allow traceur_app atrace_exec:file rx_file_perms;
|
2018-01-30 18:14:45 -08:00
|
|
|
|
2018-10-19 17:01:24 -07:00
|
|
|
# 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)
|
|
|
|
|
2018-01-30 18:14:45 -08:00
|
|
|
dontaudit traceur_app debugfs_tracing_debug:file audit_access;
|