Skip to content

Commit 8289d19

Browse files
committed
util: Define SECCOMP_RET_KILL_PROCESS if not provided by the headers
Define `SECCOMP_RET_KILL_PROCESS` as it isn't defined in the headers, as is the case for the GUIX build on this platform.
1 parent 9e530c6 commit 8289d19

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
@@ -40,6 +40,10 @@ bool g_syscall_sandbox_log_violation_before_terminating{false};
4040
#error Syscall sandbox is an experimental feature currently available only under Linux x86-64.
4141
#endif // defined(__x86_64__)
4242

43+
#ifndef SECCOMP_RET_KILL_PROCESS
44+
#define SECCOMP_RET_KILL_PROCESS 0x80000000U
45+
#endif
46+
4347
// This list of syscalls in LINUX_SYSCALLS is only used to map syscall numbers to syscall names in
4448
// order to be able to print user friendly error messages which include the syscall name in addition
4549
// to the syscall number.

0 commit comments

Comments
 (0)