Allow adbd to use a socket transferred from shell.

Used for e.g. abb.

Test: Build, flash and boot, use `adb abb` to verify

Change-Id: I4ad75498819edbcc0303f66420a58d06788ab5fb
This commit is contained in:
Alex Buynytskyy 2018-12-14 15:45:07 -08:00
parent f0264fe2e9
commit 007586d92d

View file

@ -167,6 +167,11 @@ allow adbd rootfs:dir r_dir_perms;
allow adbd perfetto_traces_data_file:file r_file_perms;
allow adbd perfetto_traces_data_file:dir r_dir_perms;
# Connect to shell and use a socket transferred from it.
# Used for e.g. abb.
allow adbd shell:unix_stream_socket { read write };
allow adbd shell:fd use;
###
### Neverallow rules
###