From 4b4b95b6e1c366fbd4e73f5bd0c0ea555bf77490 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 27 Apr 2024 17:31:39 +0200 Subject: sandbox: allow getpid in seccomp network sandbox openssl needs it --- src/utils/sandbox.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/utils/sandbox.nim b/src/utils/sandbox.nim index 9c8bc72a..130389ab 100644 --- a/src/utils/sandbox.nim +++ b/src/utils/sandbox.nim @@ -133,6 +133,7 @@ elif defined(linux) and not disableSandbox: "fcntl", "fcntl64", # so we can set nonblock etc. "mmap", "mmap2", "munmap", "brk", # memory allocation "poll", # curl needs poll + "getpid", # used indirectly by OpenSSL EVP_RAND_CTX_new (through drbg) "fstat", # glibc fread seems to call it # maybe it will need epoll too in the future "epoll_create", "epoll_create1", "epoll_ctl", "epoll_wait", -- cgit