sandbox: add copy_file_range to allowed filesystem syscalls

This commit is contained in:
fanquake 2021-10-05 09:13:55 +08:00
parent ee08741c9c
commit 44d77d2213
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -539,6 +539,7 @@ 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