fs: relax permissions for listmount()
authorChristian Brauner <brauner@kernel.org>
Mon, 24 Jun 2024 15:49:44 +0000 (11:49 -0400)
committerChristian Brauner <brauner@kernel.org>
Fri, 28 Jun 2024 07:53:29 +0000 (09:53 +0200)
commitdd7cb142f467c4660698bcaa4a48c688b443ab81
tree28ff2e3c9ace4a21784d19bfc4e42841075a2a5b
parentd04bccd8c19d601232ed3e3c9e248c0040167d47
fs: relax permissions for listmount()

It is sufficient to have capabilities in the owning user namespace of
the mount namespace to list all mounts regardless of whether they are
reachable or not.

Link: https://lore.kernel.org/r/8adc0d3f4f7495faacc6a7c63095961f7f1637c7.1719243756.git.josef@toxicpanda.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c