]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/seccomp: Add hard-coded __NR_uprobe for x86_64
authorOleg Nesterov <oleg@redhat.com>
Fri, 3 Apr 2026 13:30:40 +0000 (15:30 +0200)
committerKees Cook <kees@kernel.org>
Fri, 3 Apr 2026 15:41:38 +0000 (08:41 -0700)
This complements the commit 18f7686a1ce6 ("selftests/seccomp:
Add hard-coded __NR_uretprobe for x86_64").

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: https://patch.msgid.link/ac_BAMSggw-_ABPE@redhat.com
Signed-off-by: Kees Cook <kees@kernel.org>
tools/testing/selftests/seccomp/seccomp_bpf.c

index 32e2d4df397b027cfbd45c8273d239ace9268b08..358b6c65e120e88ae9dbaef6a8359fcc4e977478 100644 (file)
@@ -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