mirror of
https://git.freebsd.org/ports.git
synced 2025-07-04 10:59:14 -04:00
Approved by: rene (mentor, implicit) Security: https://vuxml.freebsd.org/freebsd/246174d3-e979-11ed-8290-a8a1599412c6.html
22 lines
772 B
C++
22 lines
772 B
C++
--- sandbox/policy/sandbox.cc.orig 2023-04-28 17:01:32 UTC
|
|
+++ sandbox/policy/sandbox.cc
|
|
@@ -18,6 +18,10 @@
|
|
#include "sandbox/policy/linux/sandbox_linux.h"
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+#include "sandbox/policy/sandbox.h"
|
|
+#endif // BUILDFLAG(IS_BSD)
|
|
+
|
|
#if BUILDFLAG(IS_MAC)
|
|
#include "sandbox/mac/seatbelt.h"
|
|
#endif // BUILDFLAG(IS_MAC)
|
|
@@ -31,7 +35,7 @@
|
|
namespace sandbox {
|
|
namespace policy {
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
bool Sandbox::Initialize(sandbox::mojom::Sandbox sandbox_type,
|
|
SandboxLinux::PreSandboxHook hook,
|
|
const SandboxLinux::Options& options) {
|