Index: base/test/launcher/test_launcher.cc |
diff --git a/base/test/launcher/test_launcher.cc b/base/test/launcher/test_launcher.cc |
index a37c4afa4b844333d2f9954e7615b689afcd7724..9c01a406b61b8ecb760ec512e063d8cca330ae11 100644 |
--- a/base/test/launcher/test_launcher.cc |
+++ b/base/test/launcher/test_launcher.cc |
@@ -1026,6 +1026,13 @@ int LaunchChildTestProcessWithOptions(const CommandLine& command_line, |
new_options.job_handle = job_handle.Get(); |
#endif // defined(OS_WIN) |
+#if defined(OS_LINUX) |
+ // To prevent accidental privilege sharing to an untrusted child, processes |
+ // are started with PR_SET_NO_NEW_PRIVS. Do not set that here, since this |
+ // new child will be privileged and trusted. |
+ new_options.allow_new_privs = true; |
+#endif |
+ |
base::ProcessHandle process_handle; |
{ |