diff options
author | Andrei Vagin <avagin@gmail.com> | 2022-06-12 23:07:23 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-06-15 07:58:22 -0700 |
commit | 6342140db6609a0c7d34f68c52b2947468e0e630 (patch) | |
tree | bb9b696afe09e8c80e7f9c774a0a3230bd4f0d0e /tools/testing/selftests/timens/Makefile | |
parent | fs/exec: allow to unshare a time namespace on vfork+exec (diff) | |
download | wireguard-linux-6342140db6609a0c7d34f68c52b2947468e0e630.tar.xz wireguard-linux-6342140db6609a0c7d34f68c52b2947468e0e630.zip |
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
Diffstat (limited to 'tools/testing/selftests/timens/Makefile')
-rw-r--r-- | tools/testing/selftests/timens/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timens/Makefile b/tools/testing/selftests/timens/Makefile index 3a5936cc10ab..f0d51d4d2c87 100644 --- a/tools/testing/selftests/timens/Makefile +++ b/tools/testing/selftests/timens/Makefile @@ -1,4 +1,4 @@ -TEST_GEN_PROGS := timens timerfd timer clock_nanosleep procfs exec futex +TEST_GEN_PROGS := timens timerfd timer clock_nanosleep procfs exec futex vfork_exec TEST_GEN_PROGS_EXTENDED := gettime_perf CFLAGS := -Wall -Werror -pthread |