blob: 8b6a93a4910ce93856443c3695965dec00a9f9f9 [file] [log] [blame]
Nick Kralevichbf8a37b2014-06-20 18:11:11 -07001# vdc spawned from init for the following services:
2# defaultcrypto
3# encrypt
Nick Kralevichc0d14762014-06-25 12:30:11 -07004#
5# We also transition into this domain from dumpstate, when
6# collecting bug reports.
Nick Kralevichbf8a37b2014-06-20 18:11:11 -07007
8type vdc, domain;
9type vdc_exec, exec_type, file_type;
10
11init_daemon_domain(vdc)
12
13unix_socket_connect(vdc, vold, vold)
Nick Kralevichc0d14762014-06-25 12:30:11 -070014
15# vdc sends information back to dumpstate when "adb bugreport" is used
16allow vdc dumpstate:fd use;
17allow vdc dumpstate:unix_stream_socket { read write getattr };
18
19# vdc information is written to shell owned bugreport files
20allow vdc shell_data_file:file { write getattr };
21
22# Why?
23allow vdc dumpstate:unix_dgram_socket { read write };