]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
mount_setattr.2: update conditions to create ID-mapped mounts
authorChristian Brauner <brauner@kernel.org>
Tue, 7 Jun 2022 13:38:18 +0000 (15:38 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Wed, 8 Jun 2022 15:18:52 +0000 (17:18 +0200)
Newer kernels in principle support the creation of ID-mapped mounts for
filesystems mountable in non-initial user namespaces. Currently, no such
filesystem has been ported to support this though. But we should
nonetheless update the conditions.

Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man2/mount_setattr.2

index efcfa02adf95e3a4c8c433308ae8912b78dd93c8..831f09d2784a53c3ee7ab73795b40ef08b4d2cc1 100644 (file)
@@ -632,10 +632,11 @@ The following conditions must be met in order to create an ID-mapped mount:
 .IP \(bu 3
 The caller must have the
 .B CAP_SYS_ADMIN
-capability in the initial user namespace.
-.IP \(bu
-The filesystem must be mounted in a mount namespace
-that is owned by the initial user namespace.
+capability in the user namespace the filesystem was mounted in.
+.\" commit bd303368b776eead1c29e6cdda82bde7128b82a7
+.\" Christian Brauner
+.\"     Note, currently no filesystems mountable in non-initial user namespaces
+.\"     support ID-mapped mounts.
 .IP \(bu
 The underlying filesystem must support ID-mapped mounts.
 Currently, the