2017-03-23 22:27:32 +01:00
|
|
|
typeattribute dumpstate coredomain;
|
|
|
|
|
2016-07-22 22:13:11 +02:00
|
|
|
init_daemon_domain(dumpstate)
|
|
|
|
|
|
|
|
# Execute and transition to the vdc domain
|
|
|
|
domain_auto_trans(dumpstate, vdc_exec, vdc)
|
2016-10-12 23:58:09 +02:00
|
|
|
|
2017-04-25 04:53:51 +02:00
|
|
|
# Acquire advisory lock on /system/etc/xtables.lock from ip[6]tables
|
|
|
|
allow dumpstate system_file:file lock;
|
|
|
|
|
2016-10-12 23:58:09 +02:00
|
|
|
# systrace support - allow atrace to run
|
|
|
|
allow dumpstate debugfs_tracing:dir r_dir_perms;
|
|
|
|
allow dumpstate debugfs_tracing:file rw_file_perms;
|
2018-01-31 03:14:45 +01:00
|
|
|
allow dumpstate debugfs_tracing_debug:dir r_dir_perms;
|
2016-10-12 23:58:09 +02:00
|
|
|
allow dumpstate debugfs_trace_marker:file getattr;
|
|
|
|
allow dumpstate atrace_exec:file rx_file_perms;
|
2016-07-01 21:18:54 +02:00
|
|
|
allow dumpstate storaged_exec:file rx_file_perms;
|
|
|
|
|
2017-11-17 17:23:32 +01:00
|
|
|
# /data/misc/wmtrace for wm traces
|
|
|
|
userdebug_or_eng(`
|
|
|
|
allow dumpstate wm_trace_data_file:dir r_dir_perms;
|
|
|
|
allow dumpstate wm_trace_data_file:file r_file_perms;
|
|
|
|
')
|
|
|
|
|
2016-07-01 21:18:54 +02:00
|
|
|
# Allow dumpstate to make binder calls to storaged service
|
|
|
|
binder_call(dumpstate, storaged)
|
2017-03-03 22:13:25 +01:00
|
|
|
|
2018-01-18 01:17:28 +01:00
|
|
|
# Allow dumpstate to make binder calls to statsd
|
|
|
|
binder_call(dumpstate, statsd)
|
|
|
|
|
2017-03-03 22:13:25 +01:00
|
|
|
# Collect metrics on boot time created by init
|
|
|
|
get_prop(dumpstate, boottime_prop)
|
2018-01-25 02:56:25 +01:00
|
|
|
|
|
|
|
# Signal native processes to dump their stack.
|
|
|
|
allow dumpstate {
|
|
|
|
statsd
|
|
|
|
}:process signal;
|
2018-02-14 23:32:38 +01:00
|
|
|
|
|
|
|
# For collecting bugreports.
|
|
|
|
allow dumpstate debugfs_wakeup_sources:file r_file_perms;
|
|
|
|
allow dumpstate dev_type:blk_file getattr;
|
|
|
|
allow dumpstate webview_zygote:process signal;
|
|
|
|
dontaudit dumpstate perfprofd:binder call;
|
|
|
|
dontaudit dumpstate update_engine:binder call;
|
2018-09-28 19:55:14 +02:00
|
|
|
allow dumpstate proc_net_tcp_udp:file r_file_perms;
|