2017-02-07 19:54:20 +01:00
|
|
|
# Domain for atrace process spawned by boottrace service.
|
|
|
|
|
|
|
|
type atrace_exec, exec_type, file_type;
|
|
|
|
|
2015-06-24 08:24:17 +02:00
|
|
|
userdebug_or_eng(`
|
2017-03-23 22:27:32 +01:00
|
|
|
type atrace, domain, coredomain, domain_deprecated;
|
2017-02-07 19:54:20 +01:00
|
|
|
|
2015-06-24 08:24:17 +02:00
|
|
|
init_daemon_domain(atrace)
|
2017-02-07 19:54:20 +01:00
|
|
|
|
|
|
|
# boottrace services uses /data/misc/boottrace/categories
|
|
|
|
allow atrace boottrace_data_file:dir search;
|
|
|
|
allow atrace boottrace_data_file:file r_file_perms;
|
|
|
|
|
2017-06-07 05:48:37 +02:00
|
|
|
# Allow atrace to access tracefs.
|
|
|
|
allow atrace debugfs_tracing:dir r_dir_perms;
|
2017-06-13 19:08:54 +02:00
|
|
|
allow atrace debugfs_tracing:file rw_file_perms;
|
|
|
|
allow atrace debugfs_tracing_debug:file rw_file_perms;
|
2017-06-07 05:48:37 +02:00
|
|
|
allow atrace debugfs_trace_marker:file getattr;
|
2017-02-07 19:54:20 +01:00
|
|
|
|
|
|
|
# atrace sets debug.atrace.* properties
|
|
|
|
set_prop(atrace, debug_prop)
|
|
|
|
|
|
|
|
# atrace pokes all the binder-enabled processes at startup.
|
|
|
|
binder_use(atrace)
|
|
|
|
allow atrace healthd:binder call;
|
|
|
|
allow atrace surfaceflinger:binder call;
|
2016-12-10 05:14:31 +01:00
|
|
|
')
|