20 lines
1 KiB
Diff
20 lines
1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
|
Date: Tue, 16 Apr 2019 11:25:08 -0700
|
|
Subject: unsandboxed ppapi processes skip zygote
|
|
|
|
|
|
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
|
|
index 817fa41a2dcb4692b33915281b1efc66d1b07334..e7c58a83517061bc127b57e6e0e6875d681b3430 100644
|
|
--- a/content/browser/ppapi_plugin_process_host.cc
|
|
+++ b/content/browser/ppapi_plugin_process_host.cc
|
|
@@ -106,6 +106,9 @@ class PpapiPluginSandboxedProcessLauncherDelegate
|
|
service_manager::ZygoteHandle GetZygote() override {
|
|
const base::CommandLine& browser_command_line =
|
|
*base::CommandLine::ForCurrentProcess();
|
|
+ if (browser_command_line.HasSwitch(service_manager::switches::kNoSandbox)) {
|
|
+ return nullptr;
|
|
+ }
|
|
base::CommandLine::StringType plugin_launcher = browser_command_line
|
|
.GetSwitchValueNative(switches::kPpapiPluginLauncher);
|
|
if (is_broker_ || !plugin_launcher.empty())
|