mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-05-05 09:57:21 +02:00
selftests/seccomp: Add hard-coded __NR_uretprobe for x86_64
Since headers don't always follow the selftests around correct, explicitly include the __NR_uretprobe syscall for better test coverage. Signed-off-by: Kees Cook <kees@kernel.org>
This commit is contained in:
@@ -155,6 +155,12 @@ struct seccomp_data {
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef __NR_uretprobe
|
||||
# if defined(__x86_64__)
|
||||
# define __NR_uretprobe 335
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef SECCOMP_SET_MODE_STRICT
|
||||
#define SECCOMP_SET_MODE_STRICT 0
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user