2012-01-04 09:33:27 -08:00
|
|
|
# adbd seclabel is specified in init.rc since
|
|
|
|
# it lives in the rootfs and has no unique file type.
|
2013-05-17 17:11:29 -07:00
|
|
|
type adbd, domain;
|
|
|
|
unconfined_domain(adbd)
|
2012-03-07 11:59:01 -08:00
|
|
|
domain_auto_trans(adbd, shell_exec, shell)
|
2013-05-17 17:11:29 -07:00
|
|
|
# this is an entrypoint
|
|
|
|
allow adbd rootfs:file entrypoint;
|
2013-09-30 10:54:09 -07:00
|
|
|
|
|
|
|
# Read /data/misc/adb/adb_keys.
|
|
|
|
allow adbd adb_keys_file:dir search;
|
|
|
|
allow adbd adb_keys_file:file r_file_perms;
|
|
|
|
|
|
|
|
# Allow access in case /data/misc/adb still has the old type.
|
|
|
|
allow adbd system_data_file:dir search;
|
|
|
|
allow adbd system_data_file:file r_file_perms;
|
2013-10-29 11:42:39 -07:00
|
|
|
|
|
|
|
# ndk-gdb invokes adb forward to forward the gdbserver socket.
|
|
|
|
allow adbd app_data_file:dir search;
|
|
|
|
allow adbd app_data_file:sock_file write;
|
|
|
|
allow adbd appdomain:unix_stream_socket connectto;
|
|
|
|
|
|
|
|
# ndk-gdb invokes adb pull of app_process, linker, and libc.so.
|
|
|
|
allow adbd zygote_exec:file r_file_perms;
|
|
|
|
allow adbd system_file:file r_file_perms;
|