util: Add __NR_copy_file_range syscall constant for sandbox

Kernel 4.4.0 doesn't define this.
This commit is contained in:
W. J. van der Laan 2021-10-05 19:35:24 +02:00
parent 113b863f07
commit 64085b37f8

View file

@ -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.