Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+6
+6
tools/testing/selftests/seccomp/seccomp_bpf.c
··· 155 155 # endif 156 156 #endif 157 157 158 + #ifndef __NR_uretprobe 159 + # if defined(__x86_64__) 160 + # define __NR_uretprobe 335 161 + # endif 162 + #endif 163 + 158 164 #ifndef SECCOMP_SET_MODE_STRICT 159 165 #define SECCOMP_SET_MODE_STRICT 0 160 166 #endif