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

Unified Diff: remoting/host/setup/daemon_controller_delegate_linux.cc

Issue 302083007: Set allow_new_privs when launching CRD host controller from the NM process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/daemon_controller_delegate_linux.cc
diff --git a/remoting/host/setup/daemon_controller_delegate_linux.cc b/remoting/host/setup/daemon_controller_delegate_linux.cc
index 5bc659d2dc67aabfd560b0479bbb3706394b8839..c3d0d0e97a9f39279fdd730e306191a655a67004 100644
--- a/remoting/host/setup/daemon_controller_delegate_linux.cc
+++ b/remoting/host/setup/daemon_controller_delegate_linux.cc
@@ -26,6 +26,7 @@
#include "base/strings/string_util.h"
#include "base/thread_task_runner_handle.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "net/base/net_util.h"
#include "remoting/host/host_config.h"
#include "remoting/host/json_host_config.h"
@@ -101,6 +102,11 @@ bool RunHostScriptWithTimeout(
fds_to_remap.push_back(std::pair<int, int>(STDERR_FILENO, STDOUT_FILENO));
base::LaunchOptions options;
options.fds_to_remap = &fds_to_remap;
+
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
Lambros 2014/05/31 00:42:20 Maybe remove OS_LINUX, since this file is .._linux
Sergey Ulanov 2014/05/31 00:45:32 Done.
+ options.allow_new_privs = true;
+#endif
+
if (!base::LaunchProcess(command_line, options, &process_handle)) {
LOG(ERROR) << "Failed to run command: "
<< command_line.GetCommandLineString();
« 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