]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mnt: expose pointer to init_mnt_ns
authorChristian Brauner <brauner@kernel.org>
Wed, 17 Sep 2025 10:28:01 +0000 (12:28 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 19 Sep 2025 12:26:18 +0000 (14:26 +0200)
commitb2a0b192084acd0a86d66cbbc61e17ba1f5bd583
tree55c30a2ac5aa7d6f805f93518c00e4a3bdbabeaf
parent93f67a7ddadf6ed8997c000df9790e5d64617196
mnt: expose pointer to init_mnt_ns

There's various scenarios where we need to know whether we are in the
initial set of namespaces or not to e.g., shortcut permission checking.
All namespaces expose that information. Let's do that too.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c
include/linux/mnt_namespace.h