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 ad416f6f00aff28fab5dff6358dfdcc961275396..442a9fe885e927074e6c8e2656acbd583f8d3ff7 100644 |
--- a/content/browser/zygote_host/zygote_host_impl_linux.cc |
+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc |
@@ -425,7 +425,12 @@ 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; |
+ |
+ // sandbox_helper_process is a setuid binary. |
+ options.allow_new_privs = true; |
+ |
+ if (base::LaunchProcess(adj_oom_score_cmdline, options, |
&sandbox_helper_process)) { |
base::EnsureProcessGetsReaped(sandbox_helper_process); |
} |