2014-06-21 03:11:11 +02:00
|
|
|
# vdc spawned from init for the following services:
|
|
|
|
# defaultcrypto
|
|
|
|
# encrypt
|
2014-06-25 21:30:11 +02:00
|
|
|
#
|
|
|
|
# We also transition into this domain from dumpstate, when
|
|
|
|
# collecting bug reports.
|
2014-06-21 03:11:11 +02:00
|
|
|
|
2015-11-03 18:54:39 +01:00
|
|
|
type vdc, domain, domain_deprecated;
|
2014-06-21 03:11:11 +02:00
|
|
|
type vdc_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(vdc)
|
|
|
|
|
|
|
|
unix_socket_connect(vdc, vold, vold)
|
2014-06-25 21:30:11 +02:00
|
|
|
|
|
|
|
# vdc sends information back to dumpstate when "adb bugreport" is used
|
|
|
|
allow vdc dumpstate:fd use;
|
|
|
|
allow vdc dumpstate:unix_stream_socket { read write getattr };
|
|
|
|
|
|
|
|
# vdc information is written to shell owned bugreport files
|
|
|
|
allow vdc shell_data_file:file { write getattr };
|
|
|
|
|
|
|
|
# Why?
|
|
|
|
allow vdc dumpstate:unix_dgram_socket { read write };
|
2016-02-04 23:18:52 +01:00
|
|
|
|
|
|
|
# vdc can be invoked with logwrapper, so let it write to pty
|
|
|
|
allow vdc devpts:chr_file rw_file_perms;
|