]> Git Repo - linux.git/commit
fs: Allow listmount() in foreign mount namespace
authorChristian Brauner <[email protected]>
Mon, 24 Jun 2024 15:49:48 +0000 (11:49 -0400)
committerChristian Brauner <[email protected]>
Fri, 28 Jun 2024 07:53:30 +0000 (09:53 +0200)
commit0a3deb11858ae8a0b3849b5fda45512ad383f0e1
tree7b998c4299e62457e3976b080508b4d576f88b84
parent09b31295f833031c88419550172703d45c5401e3
fs: Allow listmount() in foreign mount namespace

Expand struct mnt_id_req to add an optional mnt_ns_id field.  When this
field is populated, listmount() will be performed on the specified mount
namespace, provided the currently application has CAP_SYS_ADMIN in its
user namespace and the mount namespace is a child of the current
namespace.

Co-developed-by: Josef Bacik <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Link: https://lore.kernel.org/r/49930bdce29a8367a213eb14c1e68e7e49284f86.1719243756.git.josef@toxicpanda.com
Signed-off-by: Christian Brauner <[email protected]>
fs/namespace.c
include/uapi/linux/mount.h
This page took 0.052271 seconds and 4 git commands to generate.