diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-10-29 13:21:22 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-03 17:41:24 +0100 |
| commit | 80fedf8168ee82c30b343977901b6176cf1e0e76 (patch) | |
| tree | 5a9ef9d3559a43944c5bfcce708572db043fa79f /net/unix/af_unix.c | |
| parent | ee861032381b6bf9188a84891ae7c31396e5dd2a (diff) | |
selftests/namespace: third threaded active reference count test
Test that namespaces become inactive after subprocess with multiple
threads exits. Create a subprocess that unshares user and network
namespaces, then creates two threads that share those namespaces. Verify
that after all threads and subprocess exit, the namespaces are no longer
listed by listns() and cannot be opened by open_by_handle_at().
Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-69-2e6f823ebdc0@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
