linux-stable/tools/testing/selftests/timens
Andrei Vagin af4fddffbe selftests/timens: add a test for vfork+exit
* check that a child process is in parent's time namespace after vfork.
* check that a child process is in the target namespace after exec.

Output on success:
 1..4
 ok 1 parent before vfork
 ok 2 child after exec
 ok 3 wait for child
 ok 4 parent after vfork
 # Totals: pass:4 fail:0 xfail:0 xpass:0 skip:0 error:0

Signed-off-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20221013173154.291597-1-avagin@google.com
2022-10-25 15:15:52 -07:00
..
.gitignore selftests/timens: add a test for vfork+exit 2022-10-25 15:15:52 -07:00
Makefile selftests/timens: add a test for vfork+exit 2022-10-25 15:15:52 -07:00
clock_nanosleep.c selftests/timens: handle a case when alarm clocks are not supported 2020-05-22 13:29:55 -06:00
config
exec.c selftests/timens: Remove duplicated include <time.h> 2020-03-13 13:30:32 -06:00
futex.c selftests/timens: Add a test for futex() 2020-10-20 17:02:57 +02:00
gettime_perf.c selftests/timens: Fix gettime_perf to work on powerpc 2021-04-21 22:52:32 +10:00
log.h
procfs.c selftests/timens: remove ARRAY_SIZE define from individual tests 2021-12-10 17:51:20 -07:00
timens.c selftests/timens: remove ARRAY_SIZE define from individual tests 2021-12-10 17:51:20 -07:00
timens.h selftests/timens: handle a case when alarm clocks are not supported 2020-05-22 13:29:55 -06:00
timer.c selftests/timens: handle a case when alarm clocks are not supported 2020-05-22 13:29:55 -06:00
timerfd.c selftests/timens: handle a case when alarm clocks are not supported 2020-05-22 13:29:55 -06:00
vfork_exec.c selftests/timens: add a test for vfork+exit 2022-10-25 15:15:52 -07:00