Alex Klyubin | f5446eb | 2017-03-23 14:27:32 -0700 | [diff] [blame] | 1 | typeattribute dumpstate coredomain; |
| 2 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 3 | init_daemon_domain(dumpstate) |
| 4 | |
| 5 | # Execute and transition to the vdc domain |
| 6 | domain_auto_trans(dumpstate, vdc_exec, vdc) |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame] | 7 | |
Joel Scherpelz | 5e901bb | 2017-04-25 11:53:51 +0900 | [diff] [blame] | 8 | # Acquire advisory lock on /system/etc/xtables.lock from ip[6]tables |
| 9 | allow dumpstate system_file:file lock; |
| 10 | |
dcashman | 2e00e63 | 2016-10-12 14:58:09 -0700 | [diff] [blame] | 11 | # TODO: deal with tmpfs_domain pub/priv split properly |
| 12 | allow dumpstate dumpstate_tmpfs:file execute; |
| 13 | |
| 14 | # systrace support - allow atrace to run |
| 15 | allow dumpstate debugfs_tracing:dir r_dir_perms; |
| 16 | allow dumpstate debugfs_tracing:file rw_file_perms; |
| 17 | allow dumpstate debugfs_trace_marker:file getattr; |
| 18 | allow dumpstate atrace_exec:file rx_file_perms; |
ynwang | e68d2d2 | 2016-07-01 12:18:54 -0700 | [diff] [blame] | 19 | allow dumpstate storaged_exec:file rx_file_perms; |
| 20 | |
Vishnu Nair | 2d6942d | 2017-11-17 08:23:32 -0800 | [diff] [blame^] | 21 | # /data/misc/wmtrace for wm traces |
| 22 | userdebug_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 | |
ynwang | e68d2d2 | 2016-07-01 12:18:54 -0700 | [diff] [blame] | 27 | # Allow dumpstate to make binder calls to storaged service |
| 28 | binder_call(dumpstate, storaged) |
Keun-young Park | 43e8fae | 2017-03-03 13:13:25 -0800 | [diff] [blame] | 29 | |
| 30 | # Collect metrics on boot time created by init |
| 31 | get_prop(dumpstate, boottime_prop) |