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

Test SIOCGSKNS across setns. Create a socket in netns A, switch to netns
B, verify SIOCGSKNS still returns netns A.

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