21 lines
1.1 KiB
Diff
21 lines
1.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.patch
|
|
|
|
Unsandboxed ppapi processes should skip zygote.
|
|
|
|
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
|
|
index 620bd686edb8d623f790909db745f16eba507a1a..6ca4cabbdd451b5ef4cd9ee30d3160e4d27c9030 100644
|
|
--- a/content/browser/ppapi_plugin_process_host.cc
|
|
+++ b/content/browser/ppapi_plugin_process_host.cc
|
|
@@ -123,6 +123,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())
|