Index: content/browser/zygote_host/zygote_host_impl_linux.cc |
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc |
index a3e8e611d3728e8714fe375429fbf04542849c73..435645e8d396664c593d9ace14e4df8f91bd4489 100644 |
--- a/content/browser/zygote_host/zygote_host_impl_linux.cc |
+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc |
@@ -433,7 +433,9 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid, |
adj_oom_score_cmdline.push_back(base::IntToString(score)); |
base::ProcessHandle sandbox_helper_process; |
- if (base::LaunchProcess(adj_oom_score_cmdline, base::LaunchOptions(), |
+ base::LaunchOptions options; |
+ options.allow_new_privs = true; |
jln (very slow on Chromium)
2014/04/24 00:17:59
Please add a comment along the lines of "sandbox_h
|
+ if (base::LaunchProcess(adj_oom_score_cmdline, options, |
&sandbox_helper_process)) { |
base::EnsureProcessGetsReaped(sandbox_helper_process); |
} |
@@ -505,6 +507,10 @@ base::TerminationStatus ZygoteHostImpl::GetTerminationStatus( |
return static_cast<base::TerminationStatus>(status); |
} |
+bool ZygoteHostImpl::UsingSUIDSandbox() const { |
+ return using_suid_sandbox_; |
+} |
+ |
pid_t ZygoteHostImpl::GetPid() const { |
return pid_; |
} |