Skip to content

Commit dc0ba8c

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#24659: util: add linkat to syscall sandbox (AllowFileSystem)
9809db3 util: add linkat to syscall sandbox (AllowFileSystem) (fanquake) Pull request description: Should fix #24536. ACKs for top commit: MarcoFalke: cr ACK 9809db3 Rspigler: Tested ACK (commit 9809db3) - this fixes bitcoin/bitcoin#24536 Tree-SHA512: 2642f7dfa806e166fb32639a29b509b2edc8b919516c1f12430fc96f9887952395e157d71ef99fbaef8f7bcce1920530c24ecbce605b8a374b05d586f1f22a24
2 parents 88709e9 + 9809db3 commit dc0ba8c

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)