blob: d1fbacccf74173797b4dcbe86483ed44c82513fe [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute dumpstate coredomain;
2
dcashmancc39f632016-07-22 13:13:11 -07003init_daemon_domain(dumpstate)
4
5# Execute and transition to the vdc domain
6domain_auto_trans(dumpstate, vdc_exec, vdc)
dcashman2e00e632016-10-12 14:58:09 -07007
Joel Scherpelz5e901bb2017-04-25 11:53:51 +09008# Acquire advisory lock on /system/etc/xtables.lock from ip[6]tables
9allow dumpstate system_file:file lock;
10
dcashman2e00e632016-10-12 14:58:09 -070011# systrace support - allow atrace to run
12allow dumpstate debugfs_tracing:dir r_dir_perms;
13allow dumpstate debugfs_tracing:file rw_file_perms;
Carmen Jackson2c8ca452018-01-30 18:14:45 -080014allow dumpstate debugfs_tracing_debug:dir r_dir_perms;
dcashman2e00e632016-10-12 14:58:09 -070015allow dumpstate debugfs_trace_marker:file getattr;
16allow dumpstate atrace_exec:file rx_file_perms;
ynwange68d2d22016-07-01 12:18:54 -070017allow dumpstate storaged_exec:file rx_file_perms;
18
Vishnu Nair2d6942d2017-11-17 08:23:32 -080019# /data/misc/wmtrace for wm traces
20userdebug_or_eng(`
21 allow dumpstate wm_trace_data_file:dir r_dir_perms;
22 allow dumpstate wm_trace_data_file:file r_file_perms;
23')
24
ynwange68d2d22016-07-01 12:18:54 -070025# Allow dumpstate to make binder calls to storaged service
26binder_call(dumpstate, storaged)
Keun-young Park43e8fae2017-03-03 13:13:25 -080027
Yao Chenb10ff332018-01-17 16:17:28 -080028# Allow dumpstate to make binder calls to statsd
29binder_call(dumpstate, statsd)
30
Keun-young Park43e8fae2017-03-03 13:13:25 -080031# Collect metrics on boot time created by init
32get_prop(dumpstate, boottime_prop)
Andreas Gampe7468db62018-01-24 17:56:25 -080033
34# Signal native processes to dump their stack.
35allow dumpstate {
36 statsd
37}:process signal;
Joel Galenson03ff9f92018-02-14 14:32:38 -080038
39# For collecting bugreports.
40allow dumpstate debugfs_wakeup_sources:file r_file_perms;
41allow dumpstate dev_type:blk_file getattr;
42allow dumpstate webview_zygote:process signal;
43dontaudit dumpstate perfprofd:binder call;
44dontaudit dumpstate update_engine:binder call;
Jeff Vander Stoep42451772018-09-28 10:55:14 -070045allow dumpstate proc_net_tcp_udp:file r_file_perms;