Skip to content
Snippets Groups Projects
Commit 3abc81ce authored by Sandeep Patil's avatar Sandeep Patil Committed by android-build-merger
Browse files

Merge "Allow init to run vendor toybox for modprobe" into oc-dev

am: d5a2f3e2

Change-Id: Ie35b0b80c929066186c35d31b8f8d803f374d969
parents 99accb4a d5a2f3e2
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,7 @@ recovery_only(`
domain_trans(init, shell_exec, shell)
domain_trans(init, init_exec, ueventd)
domain_trans(init, init_exec, watchdogd)
domain_trans(init, rootfs, modprobe)
domain_trans(init, toolbox_exec, modprobe)
domain_trans(init, { rootfs toolbox_exec vendor_toolbox_exec }, modprobe)
# case where logpersistd is actually logcat -f in logd context (nee: logcatd)
userdebug_or_eng(`
domain_auto_trans(init, logcat_exec, logpersist)
......
......@@ -7,6 +7,10 @@ type vendor_toolbox_exec, exec_type, vendor_file_type, file_type;
# or read, execute the vendor_toolbox file.
full_treble_only(`
# Do not allow non-vendor domains to transition
# to vendor toolbox
neverallow coredomain vendor_toolbox_exec:file { entrypoint execute execute_no_trans };
# to vendor toolbox except for the whitelisted domains.
neverallow {
coredomain
-init
-modprobe
} vendor_toolbox_exec:file { entrypoint execute execute_no_trans };
')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment