Skip to content

Commit 515bddf

Browse files
tklauserbrauner
authored andcommitted
selftests/clone3: test clone3 with CLONE_NEWTIME
Verify that clone3 can be called successfully with CLONE_NEWTIME in flags. Cc: Andrey Vagin <avagin@openvz.org> Cc: Christian Brauner <brauner@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
1 parent a402f1e commit 515bddf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/testing/selftests/clone3/clone3.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,8 @@ int main(int argc, char *argv[])
195195
test_clone3(CLONE_NEWPID, getpagesize() + 8, -E2BIG,
196196
CLONE3_ARGS_NO_TEST);
197197

198+
/* Do a clone3() in a new time namespace */
199+
test_clone3(CLONE_NEWTIME, 0, 0, CLONE3_ARGS_NO_TEST);
200+
198201
return !ksft_get_fail_cnt() ? ksft_exit_pass() : ksft_exit_fail();
199202
}

0 commit comments

Comments
 (0)