From 64085b37f8d5c018372f013e925a725b67b527fc Mon Sep 17 00:00:00 2001 From: "W. J. van der Laan" Date: Tue, 5 Oct 2021 19:35:24 +0200 Subject: util: Add __NR_copy_file_range syscall constant for sandbox Kernel 4.4.0 doesn't define this. --- src/util/syscall_sandbox.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util/syscall_sandbox.cpp') 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. -- cgit v1.2.3