umount: Allow superblock owners to force umount
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 18 Mar 2025 16:29:21 +0000 (12:29 -0400)
committerChristian Brauner <brauner@kernel.org>
Wed, 19 Mar 2025 08:19:04 +0000 (09:19 +0100)
commite1ff7aa34dec7e650159fd7ca8ec6af7cc428d9f
treee8f730c9dd1df1666220a97858716004d244d3df
parente1c24b52adb22136fa6f4025daf841384a6d0d1e
umount: Allow superblock owners to force umount

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>
fs/namespace.c