summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-04-14 03:45:25 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2026-04-14 03:45:25 +0300
commitcea4a90faf9e5d15aee1fd01883bc81ad7640260 (patch)
tree5706ac9019f44e5805397d4d7dfd236e32960211 /tools/testing
parent613b48bbd465941f796c174c96707a9bce595265 (diff)
parent41fa04327384148b0e2e828c9be9862c5240e9fa (diff)
downloadlinux-cea4a90faf9e5d15aee1fd01883bc81ad7640260.tar.xz
Merge tag 'seccomp-v7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull seccomp update from Kees Cook: - selftests: Add hard-coded __NR_uprobe for x86_64 (Oleg Nesterov) * tag 'seccomp-v7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: selftests/seccomp: Add hard-coded __NR_uprobe for x86_64
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/seccomp/seccomp_bpf.c6
1 files changed, 6 insertions, 0 deletions
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