blob: 4f3dda6aa7f7a84b6588db05aa11f7864fb0ae59 [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
Mike Made3a3e42018-12-03 10:35:40 -080025# Allow dumpstate to make binder calls to incidentd
26binder_call(dumpstate, incidentd)
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
Joel Galenson7c275a62018-11-13 12:35:17 -080034# Allow dumpstate to talk to gpuservice over binder
35binder_call(dumpstate, gpuservice);
36
Joel Galenson657470a2018-12-05 11:01:04 -080037# Allow dumpstate to talk to idmap over binder
38binder_call(dumpstate, idmap);
39
Keun-young Park43e8fae2017-03-03 13:13:25 -080040# Collect metrics on boot time created by init
41get_prop(dumpstate, boottime_prop)
Andreas Gampe7468db62018-01-24 17:56:25 -080042
43# Signal native processes to dump their stack.
44allow dumpstate {
45 statsd
46}:process signal;
Joel Galenson03ff9f92018-02-14 14:32:38 -080047
48# For collecting bugreports.
49allow dumpstate debugfs_wakeup_sources:file r_file_perms;
50allow dumpstate dev_type:blk_file getattr;
51allow dumpstate webview_zygote:process signal;
52dontaudit dumpstate perfprofd:binder call;
53dontaudit dumpstate update_engine:binder call;
Jeff Vander Stoep42451772018-09-28 10:55:14 -070054allow dumpstate proc_net_tcp_udp:file r_file_perms;