blob: b910ddef3687d0f778050413153b6b5fd4d9a1d3 [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute incident coredomain;
2
Joe Onorato41f93db2016-11-20 23:23:04 -08003type incident_exec, exec_type, file_type;
4
5# switch to incident domain for incident command
6domain_auto_trans(shell, incident_exec, incident)
7
8# allow incident access to stdout from its parent shell.
9allow incident shell:fd use;
10
11# allow incident to communicate use, read and write over the adb
12# connection.
13allow incident adbd:fd use;
14allow incident adbd:unix_stream_socket { read write };
15
16# allow adbd to reap incident
17allow incident adbd:process { sigchld };
18
19# Allow the incident command to talk to the incidentd over the binder, and get
20# back the incident report data from a ParcelFileDescriptor.
21binder_use(incident)
22allow incident incident_service:service_manager find;
23binder_call(incident, incidentd)
24allow incident incidentd:fifo_file write;
25