Skip to content

Commit 64085b3

Browse files
committed
util: Add __NR_copy_file_range syscall constant for sandbox
Kernel 4.4.0 doesn't define this.
1 parent 113b863 commit 64085b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util/syscall_sandbox.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ bool g_syscall_sandbox_log_violation_before_terminating{false};
5858
#define __NR_membarrier 324
5959
#endif
6060

61+
#ifndef __NR_copy_file_range
62+
#define __NR_copy_file_range 326
63+
#endif
64+
6165
// This list of syscalls in LINUX_SYSCALLS is only used to map syscall numbers to syscall names in
6266
// order to be able to print user friendly error messages which include the syscall name in addition
6367
// to the syscall number.

0 commit comments

Comments
 (0)