Avoid audit when running adb shell -t run-as xxx
. am: 3b7d9e49df
am: 6e46ccdf57
Change-Id: I5241333ec9099c7db3154cfcdb41003c65e235a0
This commit is contained in:
commit
ed88246c57
2 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,7 @@ auditallow { domain_deprecated -appdomain -netd -surfaceflinger } system_server:
|
||||||
# This is used for e.g. adb backup/restore.
|
# This is used for e.g. adb backup/restore.
|
||||||
allow domain_deprecated adbd:fd use;
|
allow domain_deprecated adbd:fd use;
|
||||||
userdebug_or_eng(`
|
userdebug_or_eng(`
|
||||||
auditallow { domain_deprecated -appdomain -system_server } adbd:fd use;
|
auditallow { domain_deprecated -appdomain -system_server -runas } adbd:fd use;
|
||||||
')
|
')
|
||||||
|
|
||||||
# Root fs.
|
# Root fs.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
type runas, domain, mlstrustedsubject;
|
type runas, domain, mlstrustedsubject;
|
||||||
type runas_exec, exec_type, file_type;
|
type runas_exec, exec_type, file_type;
|
||||||
|
|
||||||
|
allow runas adbd:fd use;
|
||||||
allow runas adbd:process sigchld;
|
allow runas adbd:process sigchld;
|
||||||
allow runas adbd:unix_stream_socket { read write };
|
allow runas adbd:unix_stream_socket { read write };
|
||||||
allow runas shell:fd use;
|
allow runas shell:fd use;
|
||||||
|
|
Loading…
Reference in a new issue