mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 03:23:10 -04:00
Approved by: rene (mentor, implicit) Security: https://vuxml.freebsd.org/freebsd/246174d3-e979-11ed-8290-a8a1599412c6.html
24 lines
799 B
C++
24 lines
799 B
C++
--- sandbox/policy/sandbox.h.orig 2023-04-28 17:01:32 UTC
|
|
+++ sandbox/policy/sandbox.h
|
|
@@ -12,6 +12,12 @@
|
|
#include "sandbox/policy/linux/sandbox_linux.h"
|
|
#endif
|
|
|
|
+#if BUILDFLAG(IS_OPENBSD)
|
|
+#include "sandbox/policy/openbsd/sandbox_openbsd.h"
|
|
+#elif BUILDFLAG(IS_FREEBSD)
|
|
+#include "sandbox/policy/freebsd/sandbox_freebsd.h"
|
|
+#endif
|
|
+
|
|
namespace sandbox {
|
|
namespace mojom {
|
|
enum class Sandbox;
|
|
@@ -32,7 +38,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);
|