summaryrefslogtreecommitdiffstats
path: root/chrome/browser/zygote_host_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/zygote_host_linux.cc')
-rw-r--r--chrome/browser/zygote_host_linux.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/zygote_host_linux.cc b/chrome/browser/zygote_host_linux.cc
index 96506bb..cdeda42 100644
--- a/chrome/browser/zygote_host_linux.cc
+++ b/chrome/browser/zygote_host_linux.cc
@@ -103,9 +103,13 @@ void ZygoteHost::Init(const std::string& sandbox_cmd) {
browser_command_line.GetSwitchValueASCII(
switches::kUserDataDir));
}
- if (browser_command_line.HasSwitch(switches::kEnableSeccompSandbox)) {
+#if defined(USE_SECCOMP_SANDBOX)
+ if (browser_command_line.HasSwitch(switches::kDisableSeccompSandbox))
+ cmd_line.AppendSwitch(switches::kDisableSeccompSandbox);
+#else
+ if (browser_command_line.HasSwitch(switches::kEnableSeccompSandbox))
cmd_line.AppendSwitch(switches::kEnableSeccompSandbox);
- }
+#endif
sandbox_binary_ = sandbox_cmd.c_str();
struct stat st;