blob: 4e6feffcc786eb027b3d9ff612295e4b7534b256 [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;
Kean Mariotti7cce6f52023-08-14 09:46:18 +000013allow traceur_app wm_trace_data_file:dir rw_dir_perms;
14allow traceur_app wm_trace_data_file:file { getattr r_file_perms unlink };
Jeff Vander Stoepde045282018-01-09 12:24:47 -080015allow traceur_app atrace_exec:file rx_file_perms;
Carmen Jackson2c8ca452018-01-30 18:14:45 -080016
Carmen Jackson76d70462018-10-19 17:01:24 -070017# To exec the perfetto cmdline client and pass it the trace config on
18# stdint through a pipe.
19allow traceur_app perfetto_exec:file rx_file_perms;
20
21# Allow to access traced's privileged consumer socket.
22unix_socket_connect(traceur_app, traced_consumer, traced)
23
Carmen Jackson2c8ca452018-01-30 18:14:45 -080024dontaudit traceur_app debugfs_tracing_debug:file audit_access;
Inseob Kim55e5c9b2020-03-04 17:20:35 +090025
Inseob Kim55e5c9b2020-03-04 17:20:35 +090026set_prop(traceur_app, debug_prop)
Inseob Kim75806ef2024-03-27 17:18:41 +090027
28allow traceur_app servicemanager:service_manager list;
29allow traceur_app hwservicemanager:hwservice_manager list;
30
31allow traceur_app {
32 service_manager_type
33 -apex_service
34 -dnsresolver_service
35 -gatekeeper_service
36 -incident_service
37 -installd_service
38 -lpdump_service
39 -mdns_service
40 -netd_service
41 -virtual_touchpad_service
42 -vold_service
43 -default_android_service
44}:service_manager find;
45
46# Allow traceur_app to use atrace HAL
47hal_client_domain(traceur_app, hal_atrace)
48
49dontaudit traceur_app service_manager_type:service_manager find;
50dontaudit traceur_app hwservice_manager_type:hwservice_manager find;
51dontaudit traceur_app domain:binder call;