blob: 62628dd2575710e22f82bf7992fefeed9f5e3578 [file] [log] [blame]
dcashmancc39f632016-07-22 13:13:11 -07001# type_transition must be private policy the domain_trans rules could stay
2# public, but conceptually should go with this
3init_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
8# TODO: deal with tmpfs_domain pub/priv split properly
9allow dumpstate dumpstate_tmpfs:file execute;
10
11# systrace support - allow atrace to run
12allow dumpstate debugfs_tracing:dir r_dir_perms;
13allow dumpstate debugfs_tracing:file rw_file_perms;
14allow dumpstate debugfs_trace_marker:file getattr;
15allow dumpstate atrace_exec:file rx_file_perms;
ynwange68d2d22016-07-01 12:18:54 -070016allow dumpstate storaged_exec:file rx_file_perms;
17
18# Allow dumpstate to make binder calls to storaged service
19binder_call(dumpstate, storaged)
Keun-young Park43e8fae2017-03-03 13:13:25 -080020
21# Collect metrics on boot time created by init
22get_prop(dumpstate, boottime_prop)