Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1391)

Unified Diff: content/browser/zygote_host/zygote_host_impl_linux.cc

Issue 1452403003: don't try to adjust oom score with the suid sandbox if there is no such binary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a11d51faea3c9b2fb85e9d337c09e0b0a76f404e..a736fb04e30def930bc0f4412027656f0f53b377 100644
--- a/content/browser/zygote_host/zygote_host_impl_linux.cc
+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc
@@ -160,7 +160,8 @@ void ZygoteHostImpl::Init(const std::string& sandbox_cmd) {
// or namespace sandbox. This is needed beacuse the processes are
// non-dumpable, so /proc/pid/oom_score_adj can only be written by root.
use_suid_sandbox_for_adj_oom_score_ =
- using_namespace_sandbox || using_suid_sandbox;
+ !sandbox_binary_.empty() &&
+ (using_namespace_sandbox || using_suid_sandbox);
// Start up the sandbox host process and get the file descriptor for the
// renderers to talk to it.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698