1# Domain for atrace process spawned by boottrace service. 2type atrace_exec, exec_type, file_type; 3 4userdebug_or_eng(` 5 6 type atrace, domain, domain_deprecated; 7 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_tracing: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') 25