]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
umount: Allow superblock owners to force umount
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 18 Mar 2025 16:29:21 +0000 (12:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:43:53 +0000 (07:43 +0200)
commitc2077a80caf2e65b0382c6d3a9db20e63a90f255
tree2add333ec0d9185ef3d8dde2a595488a8e65b19d
parentd504882159a2eea1bb05ad166730fc33d598fa75
umount: Allow superblock owners to force umount

[ Upstream commit e1ff7aa34dec7e650159fd7ca8ec6af7cc428d9f ]

Loosen the permission check on forced umount to allow users holding
CAP_SYS_ADMIN privileges in namespaces that are privileged with respect
to the userns that originally mounted the filesystem.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Link: https://lore.kernel.org/r/12f212d4ef983714d065a6bb372fbb378753bf4c.1742315194.git.trond.myklebust@hammerspace.com
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/namespace.c