ports/www/chromium/files/patch-sandbox_policy_sandbox.h
Rene Ladan bfedd5f1f0 www/chromium: update to 99.0.4844.51
On the port side, this update brings:
- libvulkan enabled by default
- more unit tests enabled
- no longer dependent on Python 2.7
Security:	https://vuxml.freebsd.org/freebsd/e0914087-9a09-11ec-9e61-3065ec8fd3ec.html
2022-03-02 10:32:47 +01:00

22 lines
715 B
C++

--- sandbox/policy/sandbox.h.orig 2022-02-28 16:54:41 UTC
+++ sandbox/policy/sandbox.h
@@ -12,6 +12,10 @@
#include "sandbox/policy/linux/sandbox_linux.h"
#endif
+#if BUILDFLAG(IS_BSD)
+#include "sandbox/policy/openbsd/sandbox_openbsd.h"
+#endif
+
namespace sandbox {
namespace mojom {
enum class Sandbox;
@@ -32,7 +36,7 @@ namespace policy {
class SANDBOX_POLICY_EXPORT Sandbox {
public:
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
static bool Initialize(sandbox::mojom::Sandbox sandbox_type,
SandboxLinux::PreSandboxHook hook,
const SandboxLinux::Options& options);