]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/namespaces: first active reference count tests
authorChristian Brauner <brauner@kernel.org>
Wed, 29 Oct 2025 12:20:36 +0000 (13:20 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 3 Nov 2025 16:41:18 +0000 (17:41 +0100)
commit6bdce845fd5add4a69bc7a8101bf1741822d5de0
tree4c669099378204806359d6bb1b88f35e3e80ea25
parente2b6e5eadc13ee5268c20ad7fd4bb638326ea6d4
selftests/namespaces: first active reference count tests

Test that initial namespaces can be reopened via file handle. Initial
namespaces should always have a ref count of one from boot.

Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-23-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/.gitignore
tools/testing/selftests/namespaces/Makefile
tools/testing/selftests/namespaces/ns_active_ref_test.c [new file with mode: 0644]