From 85f85c7e5fce1ac1682bf62808d37f3da23614f7 Mon Sep 17 00:00:00 2001 From: fanquake Date: Thu, 24 Mar 2022 11:48:36 +0000 Subject: [PATCH] util: add linkat to syscall sandbox (AllowFileSystem) Github-Pull: bitcoin#24659 Rebased-From: 9809db3 --- src/util/syscall_sandbox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/syscall_sandbox.cpp b/src/util/syscall_sandbox.cpp index f2a9cf664d..efc58914b6 100644 --- a/src/util/syscall_sandbox.cpp +++ b/src/util/syscall_sandbox.cpp @@ -592,6 +592,7 @@ public: allowed_syscalls.insert(__NR_getcwd); // get current working directory allowed_syscalls.insert(__NR_getdents); // get directory entries allowed_syscalls.insert(__NR_getdents64); // get directory entries + allowed_syscalls.insert(__NR_linkat); // create relative to a directory file descriptor allowed_syscalls.insert(__NR_lstat); // get file status allowed_syscalls.insert(__NR_mkdir); // create a directory allowed_syscalls.insert(__NR_newfstatat); // get file status