blob: 8b72457e3f93e5fb26eca09acef44a4bbc07e815 [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# TODO: deal with tmpfs_domain pub/priv split properly
12allow dumpstate dumpstate_tmpfs:file execute;
13
14# systrace support - allow atrace to run
15allow dumpstate debugfs_tracing:dir r_dir_perms;
16allow dumpstate debugfs_tracing:file rw_file_perms;
Carmen Jackson2c8ca452018-01-30 18:14:45 -080017allow dumpstate debugfs_tracing_debug:dir r_dir_perms;
dcashman2e00e632016-10-12 14:58:09 -070018allow dumpstate debugfs_trace_marker:file getattr;
19allow dumpstate atrace_exec:file rx_file_perms;
ynwange68d2d22016-07-01 12:18:54 -070020allow dumpstate storaged_exec:file rx_file_perms;
21
Vishnu Nair2d6942d2017-11-17 08:23:32 -080022# /data/misc/wmtrace for wm traces
23userdebug_or_eng(`
24 allow dumpstate wm_trace_data_file:dir r_dir_perms;
25 allow dumpstate wm_trace_data_file:file r_file_perms;
26')
27
ynwange68d2d22016-07-01 12:18:54 -070028# Allow dumpstate to make binder calls to storaged service
29binder_call(dumpstate, storaged)
Keun-young Park43e8fae2017-03-03 13:13:25 -080030
Yao Chenb10ff332018-01-17 16:17:28 -080031# Allow dumpstate to make binder calls to statsd
32binder_call(dumpstate, statsd)
33
Keun-young Park43e8fae2017-03-03 13:13:25 -080034# Collect metrics on boot time created by init
35get_prop(dumpstate, boottime_prop)
Andreas Gampe7468db62018-01-24 17:56:25 -080036
37# Signal native processes to dump their stack.
38allow dumpstate {
39 statsd
40}:process signal;