Commit 18f7686a authored by Kees Cook's avatar Kees Cook
Browse files

selftests/seccomp: Add hard-coded __NR_uretprobe for x86_64



Since headers don't always follow the selftests around correct, explicitly
include the __NR_uretprobe syscall for better test coverage.

Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent a64dcfb4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -155,6 +155,12 @@ struct seccomp_data {
# endif
#endif

#ifndef __NR_uretprobe
# if defined(__x86_64__)
#  define __NR_uretprobe 335
# endif
#endif

#ifndef SECCOMP_SET_MODE_STRICT
#define SECCOMP_SET_MODE_STRICT 0
#endif