]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/namespaces: second active reference count tests
authorChristian Brauner <brauner@kernel.org>
Wed, 29 Oct 2025 12:20:37 +0000 (13:20 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 3 Nov 2025 16:41:19 +0000 (17:41 +0100)
commit721c7e41b184714cb173b04365a168d58522f9fc
treeaaec626784ef4c8e13b528143ee6c9b47b303c64
parent6bdce845fd5add4a69bc7a8101bf1741822d5de0
selftests/namespaces: second active reference count tests

Test namespace lifecycle: create a namespace in a child process, get a
file handle while it's active, then try to reopen after the process
exits (namespace becomes inactive).

Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-24-2e6f823ebdc0@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/namespaces/ns_active_ref_test.c