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