linux/fs/namespace.c
Al Viro 064014f781 do_change_type(): refuse to operate on unmounted/not ours mounts
[ Upstream commit 12f147ddd6 ]

Ensure that propagation settings can only be changed for mounts located
in the caller's mount namespace. This change aligns permission checking
with the rest of mount(2).

Reviewed-by: Christian Brauner <brauner@kernel.org>
Fixes: 07b20889e3 ("beginning of the shared-subtree proper")
Reported-by: "Orlando, Noah" <Noah.Orlando@deshaw.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-27 11:07:18 +01:00

4744 lines
115 KiB