Commit 3ac45db9 authored by Dale Curtis's avatar Dale Curtis Committed by Commit Bot

Don't add NaCl fork delegates to the unsandboxed zygote.

NaCl always starts from the sandboxed zygote, so we don't need
these added. Additionally they trigger a warning message since
the NaCl zygote shouldn't be unsandboxed.

Fixed: 1085552
Change-Id: Ic41e89dda9d06d533cf88d45228a66bd646ed1d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288821
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Derek Schuff <dschuff@chromium.org>
Reviewed-by: default avatarDerek Schuff <dschuff@chromium.org>
Auto-Submit: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786555}
parent 6404b7eb
......@@ -131,6 +131,13 @@ namespace nacl {
void AddNaClZygoteForkDelegates(
std::vector<std::unique_ptr<content::ZygoteForkDelegate>>* delegates) {
// We don't need the delegates for the unsandboxed zygote since NaCl always
// starts from the sandboxed zygote.
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
sandbox::policy::switches::kNoZygoteSandbox)) {
return;
}
delegates->push_back(
std::make_unique<NaClForkDelegate>(false /* nonsfi_mode */));
delegates->push_back(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment