projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9448598
)
selftests/seccomp: Add hard-coded __NR_uprobe for x86_64
author
Oleg Nesterov
<oleg@redhat.com>
Fri, 3 Apr 2026 13:30:40 +0000
(15:30 +0200)
committer
Kees 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
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/seccomp/seccomp_bpf.c
b/tools/testing/selftests/seccomp/seccomp_bpf.c
index
32e2d4d
..
358b6c6
100644
(file)
--- 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