SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,14 @@
Index: src/cli/sandbox.cpp
--- src/cli/sandbox.cpp.orig
+++ src/cli/sandbox.cpp
@@ -46,8 +46,8 @@ bool Sandbox::init()
Botan::initialize_allocator();
#if defined(BOTAN_TARGET_OS_HAS_PLEDGE)
- const static char *opts = "stdio rpath inet error";
- return (::pledge(opts, nullptr) == 0);
+ // Cannot use pledge(2) as Botan library calls mlock(2) and munlock(2).
+ return true;
#elif defined(BOTAN_TARGET_OS_HAS_CAP_ENTER)
cap_rights_t wt, rd;