]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/namespaces: ninth inactive namespace resurrection test
authorChristian Brauner <brauner@kernel.org>
Wed, 29 Oct 2025 12:21:16 +0000 (13:21 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 3 Nov 2025 16:41:24 +0000 (17:41 +0100)
commitb9d09f568b350cac63344c7e526996c2e6f2363f
treeb611152297cfb6ea0656dc3431c0f243b57968c1
parent6de17ec3ccc1eab51601f1b37332cdb384a3a3c9
selftests/namespaces: ninth inactive namespace resurrection test

Test that socket-kept netns appears in listns() output.
Verify that a network namespace kept alive by a socket FD appears in
listns() output even after the creating process exits, and that it
disappears when the socket is closed.

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