Skip to content
Snippets Groups Projects
Commit e786cbfc authored by Yabin Cui's avatar Yabin Cui Committed by android-build-merger
Browse files

Avoid audit when running `adb shell -t run-as xxx`. am: 3b7d9e49 am: 6e46ccdf

am: ed88246c

Change-Id: Id7a784cbe65961f876f4d2d167303dcf7854ae21
parents ac178672 ed88246c
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ auditallow { domain_deprecated -appdomain -netd -surfaceflinger } system_server:
# This is used for e.g. adb backup/restore.
allow domain_deprecated adbd:fd use;
userdebug_or_eng(`
auditallow { domain_deprecated -appdomain -system_server } adbd:fd use;
auditallow { domain_deprecated -appdomain -system_server -runas } adbd:fd use;
')
# Root fs.
......
type runas, domain, mlstrustedsubject;
type runas_exec, exec_type, file_type;
allow runas adbd:fd use;
allow runas adbd:process sigchld;
allow runas adbd:unix_stream_socket { read write };
allow runas shell:fd use;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment