Skip to content

Commit 41fa043

Browse files
oleg-nesterovkees
authored andcommitted
selftests/seccomp: Add hard-coded __NR_uprobe for x86_64
This complements the commit 18f7686 ("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>
1 parent 9448598 commit 41fa043

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tools/testing/selftests/seccomp/seccomp_bpf.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ struct seccomp_data {
170170
# endif
171171
#endif
172172

173+
#ifndef __NR_uprobe
174+
# if defined(__x86_64__)
175+
# define __NR_uprobe 336
176+
# endif
177+
#endif
178+
173179
#ifndef SECCOMP_SET_MODE_STRICT
174180
#define SECCOMP_SET_MODE_STRICT 0
175181
#endif

0 commit comments

Comments
 (0)