blob: 890a02641d75ae0710e928e07c2923774dc683f3 [file] [log] [blame]
Yasuhiro Matsuda3d328172015-06-24 15:24:17 +09001# Domain for atrace process spawned by boottrace service.
2type atrace_exec, exec_type, file_type;
3
4userdebug_or_eng(`
5
Jeff Vander Stoepd22987b2015-11-03 09:54:39 -08006 type atrace, domain, domain_deprecated;
Yasuhiro Matsuda3d328172015-06-24 15:24:17 +09007 init_daemon_domain(atrace)
8
9 # boottrace services uses /data/misc/boottrace/categories
10 allow atrace boottrace_data_file:dir search;
11 allow atrace boottrace_data_file:file r_file_perms;
12
13 # atrace reads the files in /sys/kernel/debug/tracing/
14 allow atrace debugfs:file r_file_perms;
15
16 # atrace sets debug.atrace.* properties
17 set_prop(atrace, debug_prop)
18
19 # atrace pokes all the binder-enabled processes at startup.
20 binder_use(atrace)
21 allow atrace healthd:binder call;
22 allow atrace surfaceflinger:binder call;
23
24')