]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mntns: use stable inode number for initial mount ns
authorChristian Brauner <brauner@kernel.org>
Fri, 6 Jun 2025 09:45:09 +0000 (11:45 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 11 Jun 2025 09:59:08 +0000 (11:59 +0200)
commit7f4f229195b73606ded77e56943f463b78adf635
tree552a87c24c71f2fbaa69871a470889dda0ca9896
parent9b0240b3ccc325c7a96cf362877180bc9e10d546
mntns: 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 mount
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-3-b8749c9a8844@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c
include/linux/proc_ns.h
include/uapi/linux/nsfs.h