aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/seccomp/seccomp_bpf.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-09-12 04:08:19 -0700
committerKees Cook <keescook@chromium.org>2020-10-08 13:17:25 -0700
commite953aeaa913bedcdabc168276ef41c83ae75f161 (patch)
tree5177b5a6f2a37e031f2170bbc5f3a3904ae5b09c /tools/testing/selftests/seccomp/seccomp_bpf.c
parentselftests/seccomp: powerpc: Set syscall return during ptrace syscall exit (diff)
downloadwireguard-linux-e953aeaa913bedcdabc168276ef41c83ae75f161.tar.xz
wireguard-linux-e953aeaa913bedcdabc168276ef41c83ae75f161.zip
selftests/clone3: Avoid OS-defined clone_args
As the UAPI headers start to appear in distros, we need to avoid outdated versions of struct clone_args to be able to test modern features, named "struct __clone_args". Additionally update the struct size macro names to match UAPI names. Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Link: https://lore.kernel.org/lkml/20200921075432.u4gis3s2o5qrsb5g@wittgenstein/ Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/seccomp/seccomp_bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c
index 894c2404d321..4a180439ee9e 100644
--- a/tools/testing/selftests/seccomp/seccomp_bpf.c
+++ b/tools/testing/selftests/seccomp/seccomp_bpf.c
@@ -3817,7 +3817,7 @@ TEST(user_notification_filter_empty)
long ret;
int status;
struct pollfd pollfd;
- struct clone_args args = {
+ struct __clone_args args = {
.flags = CLONE_FILES,
.exit_signal = SIGCHLD,
};
@@ -3871,7 +3871,7 @@ TEST(user_notification_filter_empty_threaded)
long ret;
int status;
struct pollfd pollfd;
- struct clone_args args = {
+ struct __clone_args args = {
.flags = CLONE_FILES,
.exit_signal = SIGCHLD,
};