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: Kees Cook <kees@kernel.org>
This commit is contained in:
Kees Cook
2025-02-10 09:22:50 -08:00
parent a64dcfb451
commit 18f7686a1c
@@ -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