2017-03-23 22:27:32 +01:00
|
|
|
typeattribute dumpstate coredomain;
|
|
|
|
|
2016-07-22 22:13:11 +02:00
|
|
|
init_daemon_domain(dumpstate)
|
|
|
|
|
|
|
|
# Execute and transition to the vdc domain
|
|
|
|
domain_auto_trans(dumpstate, vdc_exec, vdc)
|
2016-10-12 23:58:09 +02:00
|
|
|
|
2017-04-25 04:53:51 +02:00
|
|
|
# Acquire advisory lock on /system/etc/xtables.lock from ip[6]tables
|
|
|
|
allow dumpstate system_file:file lock;
|
|
|
|
|
2016-07-01 21:18:54 +02:00
|
|
|
allow dumpstate storaged_exec:file rx_file_perms;
|
|
|
|
|
2017-11-17 17:23:32 +01:00
|
|
|
# /data/misc/wmtrace for wm traces
|
|
|
|
userdebug_or_eng(`
|
|
|
|
allow dumpstate wm_trace_data_file:dir r_dir_perms;
|
|
|
|
allow dumpstate wm_trace_data_file:file r_file_perms;
|
|
|
|
')
|
|
|
|
|
2018-12-03 19:35:40 +01:00
|
|
|
# Allow dumpstate to make binder calls to incidentd
|
|
|
|
binder_call(dumpstate, incidentd)
|
|
|
|
|
2016-07-01 21:18:54 +02:00
|
|
|
# Allow dumpstate to make binder calls to storaged service
|
|
|
|
binder_call(dumpstate, storaged)
|
2017-03-03 22:13:25 +01:00
|
|
|
|
2018-01-18 01:17:28 +01:00
|
|
|
# Allow dumpstate to make binder calls to statsd
|
|
|
|
binder_call(dumpstate, statsd)
|
|
|
|
|
2018-11-13 21:35:17 +01:00
|
|
|
# Allow dumpstate to talk to gpuservice over binder
|
|
|
|
binder_call(dumpstate, gpuservice);
|
|
|
|
|
2018-12-05 20:01:04 +01:00
|
|
|
# Allow dumpstate to talk to idmap over binder
|
|
|
|
binder_call(dumpstate, idmap);
|
|
|
|
|
2017-03-03 22:13:25 +01:00
|
|
|
# Collect metrics on boot time created by init
|
|
|
|
get_prop(dumpstate, boottime_prop)
|
2018-01-25 02:56:25 +01:00
|
|
|
|
|
|
|
# Signal native processes to dump their stack.
|
|
|
|
allow dumpstate {
|
|
|
|
statsd
|
2019-04-05 10:33:56 +02:00
|
|
|
netd
|
2018-01-25 02:56:25 +01:00
|
|
|
}:process signal;
|
2018-02-14 23:32:38 +01:00
|
|
|
|
|
|
|
# For collecting bugreports.
|
|
|
|
allow dumpstate debugfs_wakeup_sources:file r_file_perms;
|
|
|
|
allow dumpstate dev_type:blk_file getattr;
|
|
|
|
allow dumpstate webview_zygote:process signal;
|
|
|
|
dontaudit dumpstate update_engine:binder call;
|
2018-09-28 19:55:14 +02:00
|
|
|
allow dumpstate proc_net_tcp_udp:file r_file_perms;
|
2018-12-08 02:20:14 +01:00
|
|
|
|
|
|
|
# For comminucating with the system process to do confirmation ui.
|
|
|
|
binder_call(dumpstate, incidentcompanion_service)
|
2019-09-06 23:52:21 +02:00
|
|
|
|
|
|
|
# For dumping dynamic partition information.
|
|
|
|
set_prop(dumpstate, lpdumpd_prop)
|
|
|
|
binder_call(dumpstate, lpdumpd)
|
2019-09-10 02:52:06 +02:00
|
|
|
|
|
|
|
# For dumping device-mapper and snapshot information.
|
|
|
|
allow dumpstate gsid_exec:file rx_file_perms;
|
|
|
|
set_prop(dumpstate, ctl_gsid_prop)
|
|
|
|
binder_call(dumpstate, gsid)
|
2019-10-29 22:12:16 +01:00
|
|
|
|
|
|
|
r_dir_file(dumpstate, ota_metadata_file)
|