Skip to content

Commit ee08741

Browse files
committed
sandbox: add newfstatat to allowed filesystem syscalls
1 parent 9e530c6 commit ee08741

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
@@ -545,6 +545,7 @@ class SeccompPolicyBuilder
545545
allowed_syscalls.insert(__NR_fdatasync); // synchronize a file's in-core state with storage device
546546
allowed_syscalls.insert(__NR_flock); // apply or remove an advisory lock on an open file
547547
allowed_syscalls.insert(__NR_fstat); // get file status
548+
allowed_syscalls.insert(__NR_newfstatat); // get file status
548549
allowed_syscalls.insert(__NR_fsync); // synchronize a file's in-core state with storage device
549550
allowed_syscalls.insert(__NR_ftruncate); // truncate a file to a specified length
550551
allowed_syscalls.insert(__NR_getcwd); // get current working directory

0 commit comments

Comments
 (0)