blob: 24a57de96d0cf29f95f020990d52020327b3d76f [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;
17allow dumpstate debugfs_trace_marker:file getattr;
18allow dumpstate atrace_exec:file rx_file_perms;
ynwange68d2d22016-07-01 12:18:54 -070019allow dumpstate storaged_exec:file rx_file_perms;
20
Vishnu Nair2d6942d2017-11-17 08:23:32 -080021# /data/misc/wmtrace for wm traces
22userdebug_or_eng(`
23 allow dumpstate wm_trace_data_file:dir r_dir_perms;
24 allow dumpstate wm_trace_data_file:file r_file_perms;
25')
26
ynwange68d2d22016-07-01 12:18:54 -070027# Allow dumpstate to make binder calls to storaged service
28binder_call(dumpstate, storaged)
Keun-young Park43e8fae2017-03-03 13:13:25 -080029
30# Collect metrics on boot time created by init
31get_prop(dumpstate, boottime_prop)