From 41fa04327384148b0e2e828c9be9862c5240e9fa Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Fri, 3 Apr 2026 15:30:40 +0200 Subject: selftests/seccomp: Add hard-coded __NR_uprobe for x86_64 This complements the commit 18f7686a1ce6 ("selftests/seccomp: Add hard-coded __NR_uretprobe for x86_64"). Signed-off-by: Oleg Nesterov Link: https://patch.msgid.link/ac_BAMSggw-_ABPE@redhat.com Signed-off-by: Kees Cook --- tools/testing/selftests/seccomp/seccomp_bpf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 32e2d4df397b..358b6c65e120 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -170,6 +170,12 @@ struct seccomp_data { # endif #endif +#ifndef __NR_uprobe +# if defined(__x86_64__) +# define __NR_uprobe 336 +# endif +#endif + #ifndef SECCOMP_SET_MODE_STRICT #define SECCOMP_SET_MODE_STRICT 0 #endif -- cgit v1.2.3