pkgsrc-wip/chromium/patches/patch-base_process_launch.cc

14 lines
500 B
C++

$NetBSD$
--- base/process/launch.cc.orig 2020-06-25 09:31:18.000000000 +0000
+++ base/process/launch.cc
@@ -15,7 +15,7 @@ LaunchOptions::~LaunchOptions() = defaul
LaunchOptions LaunchOptionsForTest() {
LaunchOptions options;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
// 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 used for testing only.