mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Merge bitcoin/bitcoin#23179: sandbox: add newfstatat & copy_file_range to allowed filesystem syscalls
44d77d2213sandbox: add copy_file_range to allowed filesystem syscalls (fanquake)ee08741c9csandbox: add newfstatat to allowed filesystem syscalls (fanquake) Pull request description: Similar to #23178, this is a follow up to #20487, which has broken running the unit tests for some developers. Fix this by adding `newfstatat` to the list of allowed filesystem related calls. ACKs for top commit: achow101: ACK44d77d2213laanwj: Code review ACK44d77d2213practicalswift: cr ACK44d77d2213Tree-SHA512: ce9d1b441ebf25bd2cf290566e05864223c1418dab315c962e1094ad877db5dd9fcab94ab98a46da8b712a8f5f46675d62ca3349215d8df46ec5b3c4d72dbaa6
This commit is contained in:
@@ -539,12 +539,14 @@ public:
|
||||
allowed_syscalls.insert(__NR_access); // check user's permissions for a file
|
||||
allowed_syscalls.insert(__NR_chdir); // change working directory
|
||||
allowed_syscalls.insert(__NR_chmod); // change permissions of a file
|
||||
allowed_syscalls.insert(__NR_copy_file_range); // copy a range of data from one file to another
|
||||
allowed_syscalls.insert(__NR_fallocate); // manipulate file space
|
||||
allowed_syscalls.insert(__NR_fchmod); // change permissions of a file
|
||||
allowed_syscalls.insert(__NR_fchown); // change ownership of a file
|
||||
allowed_syscalls.insert(__NR_fdatasync); // synchronize a file's in-core state with storage device
|
||||
allowed_syscalls.insert(__NR_flock); // apply or remove an advisory lock on an open file
|
||||
allowed_syscalls.insert(__NR_fstat); // get file status
|
||||
allowed_syscalls.insert(__NR_newfstatat); // get file status
|
||||
allowed_syscalls.insert(__NR_fsync); // synchronize a file's in-core state with storage device
|
||||
allowed_syscalls.insert(__NR_ftruncate); // truncate a file to a specified length
|
||||
allowed_syscalls.insert(__NR_getcwd); // get current working directory
|
||||
|
||||
Reference in New Issue
Block a user