blob: 2937e269b503d5ef372f2c2ac48f64ea243dcabb [file] [log] [blame]
Max Bires4ea55692017-12-11 16:19:23 -08001typeattribute traceur_app coredomain;
2
Jeff Vander Stoepde045282018-01-09 12:24:47 -08003app_domain(traceur_app);
4allow traceur_app debugfs_tracing:file rw_file_perms;
Carmen Jackson2c8ca452018-01-30 18:14:45 -08005allow traceur_app debugfs_tracing_debug:dir r_dir_perms;
Jeff Vander Stoepde045282018-01-09 12:24:47 -08006
Max Bires4ea55692017-12-11 16:19:23 -08007userdebug_or_eng(`
Max Bires35c36382018-01-15 16:44:04 -08008 allow traceur_app debugfs_tracing_debug:file rw_file_perms;
Max Bires4ea55692017-12-11 16:19:23 -08009')
Jeff Vander Stoepde045282018-01-09 12:24:47 -080010
11allow traceur_app trace_data_file:file create_file_perms;
Carmen Jacksonfa0bf192018-02-20 14:47:08 -080012allow traceur_app trace_data_file:dir rw_dir_perms;
Jeff Vander Stoepde045282018-01-09 12:24:47 -080013allow traceur_app atrace_exec:file rx_file_perms;
Carmen Jackson2c8ca452018-01-30 18:14:45 -080014
Carmen Jackson76d70462018-10-19 17:01:24 -070015# To exec the perfetto cmdline client and pass it the trace config on
16# stdint through a pipe.
17allow traceur_app perfetto_exec:file rx_file_perms;
18
19# Allow to access traced's privileged consumer socket.
20unix_socket_connect(traceur_app, traced_consumer, traced)
21
Carmen Jackson2c8ca452018-01-30 18:14:45 -080022dontaudit traceur_app debugfs_tracing_debug:file audit_access;
Inseob Kim55e5c9b2020-03-04 17:20:35 +090023
Inseob Kim55e5c9b2020-03-04 17:20:35 +090024set_prop(traceur_app, debug_prop)