]> 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, 25 Apr 2025 08:45:10 +0000 (10:45 +0200)
commit4ec80a68733f7dc6ad367d2c23f5d590f9fa5ec4
tree0925592e4e7a4e3c9886ebe59320ad08f3278aa0
parent323960a187a9622d9006484ff6635680d3a0118f
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