summaryrefslogtreecommitdiff
path: root/kernel/nscommon.c
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-10-29 13:20:26 +0100
committerChristian Brauner <brauner@kernel.org>2025-11-03 17:41:17 +0100
commit2ccaebc686e9ef7e94b3a8d89706daed6e696667 (patch)
treeec1a61e51799ed4b8b637df0a2d8180cddeac726 /kernel/nscommon.c
parent8895d2a3dbf49f23622ab8da9fb3909826edd6dc (diff)
nstree: introduce a unified tree
This will allow userspace to lookup and stat a namespace simply by its identifier without having to know what type of namespace it is. Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-13-2e6f823ebdc0@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'kernel/nscommon.c')
-rw-r--r--kernel/nscommon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/nscommon.c b/kernel/nscommon.c
index abd1ac1a2d02..17a6ea44f054 100644
--- a/kernel/nscommon.c
+++ b/kernel/nscommon.c
@@ -62,6 +62,7 @@ int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_ope
ns->ns_id = 0;
ns->ns_type = ns_type;
RB_CLEAR_NODE(&ns->ns_tree_node);
+ RB_CLEAR_NODE(&ns->ns_unified_tree_node);
INIT_LIST_HEAD(&ns->ns_list_node);
#ifdef CONFIG_DEBUG_VFS