blob: 31cf9e766d1a05914f2ee449a70514dee90b8f4c [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/
Nick Kralevich24f62b32015-12-14 16:04:55 -080014 allow atrace debugfs_tracing:file r_file_perms;
Yasuhiro Matsuda3d328172015-06-24 15:24:17 +090015
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')