Skip to content

Commit 85f85c7

Browse files
fanquakejonatack
authored andcommitted
util: add linkat to syscall sandbox (AllowFileSystem)
Github-Pull: bitcoin#24659 Rebased-From: 9809db3
1 parent eaa0419 commit 85f85c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/syscall_sandbox.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ class SeccompPolicyBuilder
592592
allowed_syscalls.insert(__NR_getcwd); // get current working directory
593593
allowed_syscalls.insert(__NR_getdents); // get directory entries
594594
allowed_syscalls.insert(__NR_getdents64); // get directory entries
595+
allowed_syscalls.insert(__NR_linkat); // create relative to a directory file descriptor
595596
allowed_syscalls.insert(__NR_lstat); // get file status
596597
allowed_syscalls.insert(__NR_mkdir); // create a directory
597598
allowed_syscalls.insert(__NR_newfstatat); // get file status

0 commit comments

Comments
 (0)