1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/timens
Andrei Vagin 6342140db6 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:
$ ./vfork_exec
1..1
ok 1 exec

Signed-off-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220613060723.197407-2-avagin@gmail.com
2022-06-15 07:58:22 -07:00
..
.gitignore selftests/timens: add futex binary to .gitignore 2021-02-08 17:29:58 -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 selftests/timens: Add Time Namespace test for supported clocks 2020-01-14 12:21:00 +01:00
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 selftests/timens: Add Time Namespace test for supported clocks 2020-01-14 12:21:00 +01:00
Makefile selftests/timens: add a test for vfork+exit 2022-06-15 07:58:22 -07:00
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-06-15 07:58:22 -07:00