diff options
author | 2020-09-12 04:08:19 -0700 | |
---|---|---|
committer | 2020-10-08 13:17:25 -0700 | |
commit | e953aeaa913bedcdabc168276ef41c83ae75f161 (patch) | |
tree | 5177b5a6f2a37e031f2170bbc5f3a3904ae5b09c /tools/testing/selftests/clone3/clone3_clear_sighand.c | |
parent | selftests/seccomp: powerpc: Set syscall return during ptrace syscall exit (diff) | |
download | linux-e953aeaa913bedcdabc168276ef41c83ae75f161.tar.gz linux-e953aeaa913bedcdabc168276ef41c83ae75f161.tar.bz2 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 'tools/testing/selftests/clone3/clone3_clear_sighand.c')
-rw-r--r-- | tools/testing/selftests/clone3/clone3_clear_sighand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/clone3/clone3_clear_sighand.c b/tools/testing/selftests/clone3/clone3_clear_sighand.c index db5fc9c5edcf..47a8c0fc3676 100644 --- a/tools/testing/selftests/clone3/clone3_clear_sighand.c +++ b/tools/testing/selftests/clone3/clone3_clear_sighand.c @@ -47,7 +47,7 @@ static void test_clone3_clear_sighand(void) { int ret; pid_t pid; - struct clone_args args = {}; + struct __clone_args args = {}; struct sigaction act; /* |