mirror of
https://github.com/torvalds/linux
synced 2026-07-23 02:30:46 +09: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