Skip to content
Snippets Groups Projects
Commit 1847a38b authored by Yabin Cui's avatar Yabin Cui
Browse files

Allow run-as to read/write unix_stream_sockets created by adbd.

This is to Allow commands like `adb shell run-as ...`.

Bug: http://b/62358246
Test: run commands manually.
Change-Id: I7bb6c79a6e27ff1224a80c6ddeffb7f27f492bb2
parent 7aa08523
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ type runas, domain, domain_deprecated, mlstrustedsubject; ...@@ -2,6 +2,7 @@ type runas, domain, domain_deprecated, mlstrustedsubject;
type runas_exec, exec_type, file_type; type runas_exec, exec_type, file_type;
allow runas adbd:process sigchld; allow runas adbd:process sigchld;
allow runas adbd:unix_stream_socket { read write };
allow runas shell:fd use; allow runas shell:fd use;
allow runas shell:fifo_file { read write }; allow runas shell:fifo_file { read write };
allow runas shell:unix_stream_socket { read write }; allow runas shell:unix_stream_socket { read write };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment