Skip to content

Commit cf06c9b

Browse files
committed
Merge bitcoin/bitcoin#23555: util: Add missing fstatfs to syscall sandbox
fade4b3 util: Add missing fstatfs to syscall sandbox (MarcoFalke) Pull request description: Looks like this is used by boost 1.77 in `./test/functional/wallet_backup.py --descriptors`. Fixes bitcoin/bitcoin#23554 ACKs for top commit: fanquake: ACK fade4b3 - reproduced the failure on Tumbleweed: Tree-SHA512: cd7381e87c7cb4596da0b9e36c8776a3ef19f5aeb29ee9db1867657c4c1f071485ffea0fba0af950f10a16a8bdb0a0c70ffcc5be802e82d60882e00f7d2009ac
2 parents 80ae64d + fade4b3 commit cf06c9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/syscall_sandbox.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,14 +581,15 @@ class SeccompPolicyBuilder
581581
allowed_syscalls.insert(__NR_fdatasync); // synchronize a file's in-core state with storage device
582582
allowed_syscalls.insert(__NR_flock); // apply or remove an advisory lock on an open file
583583
allowed_syscalls.insert(__NR_fstat); // get file status
584-
allowed_syscalls.insert(__NR_newfstatat); // get file status
584+
allowed_syscalls.insert(__NR_fstatfs); // get file system status
585585
allowed_syscalls.insert(__NR_fsync); // synchronize a file's in-core state with storage device
586586
allowed_syscalls.insert(__NR_ftruncate); // truncate a file to a specified length
587587
allowed_syscalls.insert(__NR_getcwd); // get current working directory
588588
allowed_syscalls.insert(__NR_getdents); // get directory entries
589589
allowed_syscalls.insert(__NR_getdents64); // get directory entries
590590
allowed_syscalls.insert(__NR_lstat); // get file status
591591
allowed_syscalls.insert(__NR_mkdir); // create a directory
592+
allowed_syscalls.insert(__NR_newfstatat); // get file status
592593
allowed_syscalls.insert(__NR_open); // open and possibly create a file
593594
allowed_syscalls.insert(__NR_openat); // open and possibly create a file
594595
allowed_syscalls.insert(__NR_readlink); // read value of a symbolic link

0 commit comments

Comments
 (0)