Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 787937c4 authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman
Browse files

do_change_type(): refuse to operate on unmounted/not ours mounts



[ Upstream commit 12f147ddd6de7382dad54812e65f3f08d05809fc ]

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: default avatarChristian Brauner <brauner@kernel.org>
Fixes: 07b20889 ("beginning of the shared-subtree proper")
Reported-by: default avatar"Orlando, Noah" <Noah.Orlando@deshaw.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 36d91620
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment