aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-06-06 11:45:08 +0200
committerChristian Brauner <brauner@kernel.org>2025-06-11 11:59:08 +0200
commit9b0240b3ccc325c7a96cf362877180bc9e10d546 (patch)
treeeacee4a3fe6794b52a141a1a5f6976f03bea38c7 /include/uapi
parentnsfs: move root inode number to uapi (diff)
downloadlinux-9b0240b3ccc325c7a96cf362877180bc9e10d546.tar.gz
linux-9b0240b3ccc325c7a96cf362877180bc9e10d546.zip
netns: use stable inode number for initial mount ns
Apart from the network and mount namespace all other namespaces expose a stable inode number and userspace has been relying on that for a very long time now. It's very much heavily used API. Align the network namespace and use a stable inode number from the reserved procfs inode number space so this is consistent across all namespaces. Link: https://lore.kernel.org/20250606-work-nsfs-v1-2-b8749c9a8844@kernel.org Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nsfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/nsfs.h b/include/uapi/linux/nsfs.h
index 6683e7ca3996..393778489d85 100644
--- a/include/uapi/linux/nsfs.h
+++ b/include/uapi/linux/nsfs.h
@@ -49,6 +49,7 @@ enum init_ns_ino {
PID_NS_INIT_INO = 0xEFFFFFFCU,
CGROUP_NS_INIT_INO = 0xEFFFFFFBU,
TIME_NS_INIT_INO = 0xEFFFFFFAU,
+ NET_NS_INIT_INO = 0xEFFFFFF9U,
};
#endif /* __LINUX_NSFS_H */