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

Unified Diff: content/worker/worker_main.cc

Issue 10546130: Merge 140080 - Block ptrace (and ptrace-like) syscalls from the renderer and worker processs. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1132/src/
Patch Set: Created 8 years, 6 months 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 | « content/renderer/renderer_main_platform_delegate_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/worker/worker_main.cc
===================================================================
--- content/worker/worker_main.cc (revision 141713)
+++ content/worker/worker_main.cc (working copy)
@@ -11,10 +11,10 @@
#include "content/common/child_process.h"
#include "content/common/hi_res_timer_manager.h"
#include "content/public/common/main_function_params.h"
+#include "content/public/common/sandbox_init.h"
#include "content/worker/worker_thread.h"
#if defined(OS_WIN)
-#include "content/public/common/sandbox_init.h"
#include "sandbox/src/sandbox.h"
#endif
@@ -45,6 +45,10 @@
target_services->LowerToken();
#endif
+#if defined(OS_LINUX)
+ content::InitializeSandbox();
+#endif
+
const CommandLine& parsed_command_line = parameters.command_line;
if (parsed_command_line.HasSwitch(switches::kWaitForDebugger)) {
ChildProcess::WaitForDebugger("Worker");
« no previous file with comments | « content/renderer/renderer_main_platform_delegate_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698