2017-12-12 01:19:23 +01:00
|
|
|
typeattribute traceur_app coredomain;
|
|
|
|
|
2018-01-09 21:24:47 +01:00
|
|
|
app_domain(traceur_app);
|
|
|
|
allow traceur_app debugfs_tracing:file rw_file_perms;
|
2018-01-31 03:14:45 +01:00
|
|
|
allow traceur_app debugfs_tracing_debug:dir r_dir_perms;
|
2018-01-09 21:24:47 +01:00
|
|
|
|
2017-12-12 01:19:23 +01:00
|
|
|
userdebug_or_eng(`
|
2018-01-16 01:44:04 +01:00
|
|
|
allow traceur_app debugfs_tracing_debug:file rw_file_perms;
|
2017-12-12 01:19:23 +01:00
|
|
|
')
|
2018-01-09 21:24:47 +01:00
|
|
|
|
|
|
|
allow traceur_app trace_data_file:file create_file_perms;
|
2018-02-20 23:47:08 +01:00
|
|
|
allow traceur_app trace_data_file:dir rw_dir_perms;
|
2018-01-09 21:24:47 +01:00
|
|
|
allow traceur_app atrace_exec:file rx_file_perms;
|
2018-01-31 03:14:45 +01:00
|
|
|
|
2018-10-20 02:01:24 +02: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-31 03:14:45 +01:00
|
|
|
dontaudit traceur_app debugfs_tracing_debug:file audit_access;
|
2020-03-04 09:20:35 +01:00
|
|
|
|
|
|
|
set_prop(traceur_app, debug_prop)
|