selftests/clone3: Avoid OS-defined clone_args
authorKees Cook <keescook@chromium.org>
Sat, 12 Sep 2020 11:08:19 +0000 (04:08 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 8 Oct 2020 20:17:25 +0000 (13:17 -0700)
commite953aeaa913bedcdabc168276ef41c83ae75f161
tree5177b5a6f2a37e031f2170bbc5f3a3904ae5b09c
parenta39caac02f2f5819d39f37d7987babe19fcafe21
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>
tools/testing/selftests/clone3/clone3.c
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
tools/testing/selftests/clone3/clone3_clear_sighand.c
tools/testing/selftests/clone3/clone3_selftests.h
tools/testing/selftests/clone3/clone3_set_tid.c
tools/testing/selftests/pidfd/pidfd_setns_test.c
tools/testing/selftests/seccomp/seccomp_bpf.c