sandbox: add newfstatat to allowed filesystem syscalls

This commit is contained in:
fanquake 2021-10-05 08:41:41 +08:00
parent 9e530c6352
commit ee08741c9c
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -545,6 +545,7 @@ public:
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