aboutsummaryrefslogtreecommitdiff
path: root/src/util/syscall_sandbox.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-03-24 11:48:36 +0000
committerfanquake <fanquake@gmail.com>2022-03-24 11:48:36 +0000
commit9809db3577f0fa618bea42635b1581e628a30395 (patch)
tree4319cb5c06864aa14fa7c1c915c7435ffbe266cc /src/util/syscall_sandbox.cpp
parent864fb89b2f8b529121a0d39b6fbc0242d19fd506 (diff)
downloadbitcoin-9809db3577f0fa618bea42635b1581e628a30395.tar.xz
util: add linkat to syscall sandbox (AllowFileSystem)
Diffstat (limited to 'src/util/syscall_sandbox.cpp')
-rw-r--r--src/util/syscall_sandbox.cpp1
1 files changed, 1 insertions, 0 deletions
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