blob: 9c4f342007dc16cff4358c4a58833bcec1adaa0e [file] [log] [blame]
Alex Klyubin357c1612017-02-07 10:54:20 -08001# Domain for atrace process spawned by boottrace service.
2
3type atrace_exec, exec_type, file_type;
4
Yasuhiro Matsuda3d328172015-06-24 15:24:17 +09005userdebug_or_eng(`
Alex Klyubin357c1612017-02-07 10:54:20 -08006 type atrace, domain, domain_deprecated;
7
Yasuhiro Matsuda3d328172015-06-24 15:24:17 +09008 init_daemon_domain(atrace)
Alex Klyubin357c1612017-02-07 10:54:20 -08009
10 # boottrace services uses /data/misc/boottrace/categories
11 allow atrace boottrace_data_file:dir search;
12 allow atrace boottrace_data_file:file r_file_perms;
13
14 # atrace reads the files in /sys/kernel/debug/tracing/
15 allow atrace debugfs_tracing:file r_file_perms;
16
17 # atrace sets debug.atrace.* properties
18 set_prop(atrace, debug_prop)
19
20 # atrace pokes all the binder-enabled processes at startup.
21 binder_use(atrace)
22 allow atrace healthd:binder call;
23 allow atrace surfaceflinger:binder call;
Nick Kralevichb56e6ef2016-12-09 20:14:31 -080024')