sandbox: add copy_file_range to allowed filesystem syscalls

This commit is contained in:
fanquake committed 2021-10-05 09:13:55 +08:00
1 parent ee08741c9c
commit 44d77d2213
1 file changed
+1
+1
View File
@@ -539,6 +539,7 @@ public:
allowed_syscalls.insert(__NR_access); // check user's permissions for a file allowed_syscalls.insert(__NR_access); // check user's permissions for a file
allowed_syscalls.insert(__NR_chdir); // change working directory allowed_syscalls.insert(__NR_chdir); // change working directory
allowed_syscalls.insert(__NR_chmod); // change permissions of a file 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_fallocate); // manipulate file space
allowed_syscalls.insert(__NR_fchmod); // change permissions of a file allowed_syscalls.insert(__NR_fchmod); // change permissions of a file
allowed_syscalls.insert(__NR_fchown); // change ownership of a file allowed_syscalls.insert(__NR_fchown); // change ownership of a file