diff options
author | W. J. van der Laan <laanwj@protonmail.com> | 2021-10-05 19:35:24 +0200 |
---|---|---|
committer | W. J. van der Laan <laanwj@protonmail.com> | 2021-10-05 19:35:24 +0200 |
commit | 64085b37f8d5c018372f013e925a725b67b527fc (patch) | |
tree | acedbd895ec2f2aa970c42faa361ca1f9356017a /src/util/syscall_sandbox.cpp | |
parent | 113b863f0773999497f952daa6539a03a66a9de3 (diff) |
util: Add __NR_copy_file_range syscall constant for sandbox
Kernel 4.4.0 doesn't define this.
Diffstat (limited to 'src/util/syscall_sandbox.cpp')
-rw-r--r-- | src/util/syscall_sandbox.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/syscall_sandbox.cpp b/src/util/syscall_sandbox.cpp index 6d62864a4a..2b6a2dd14a 100644 --- a/src/util/syscall_sandbox.cpp +++ b/src/util/syscall_sandbox.cpp @@ -58,6 +58,10 @@ bool g_syscall_sandbox_log_violation_before_terminating{false}; #define __NR_membarrier 324 #endif +#ifndef __NR_copy_file_range +#define __NR_copy_file_range 326 +#endif + // This list of syscalls in LINUX_SYSCALLS is only used to map syscall numbers to syscall names in // order to be able to print user friendly error messages which include the syscall name in addition // to the syscall number. |