aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-content_utility_utility__main.cc
blob: 501ac6883c9eeb62f7f76f00523512340d9c4df3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- content/utility/utility_main.cc.orig	2021-07-19 18:45:16 UTC
+++ content/utility/utility_main.cc
@@ -113,6 +113,11 @@ int UtilityMain(const MainFunctionParams& parameters) 
     }
   }
 
+#if defined(OS_FREEBSD)
+  sandbox::policy::Sandbox::Initialize(
+      sandbox::policy::SandboxTypeFromCommandLine(parameters.command_line));
+#endif
+
 #if defined(OS_LINUX) || defined(OS_CHROMEOS)
   // Initializes the sandbox before any threads are created.
   // TODO(jorgelo): move this after GTK initialization when we enable a strict