SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
security/botan2/patches/patch-src_cli_sandbox_cpp
Normal file
14
security/botan2/patches/patch-src_cli_sandbox_cpp
Normal 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;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue