From: Göran Uddeborg Date: Sun, 16 Feb 2025 18:59:50 +0000 (+0100) Subject: man/man7/mount_namespaces.7: Fix an incorrect path in an example X-Git-Tag: man-pages-6.12~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b307134ee68cd0f3568a3d2d9c2119bd5a8adf6;p=thirdparty%2Fman-pages.git man/man7/mount_namespaces.7: Fix an incorrect path in an example In the example showing how locked mounts in a less privileged mount namespace can not be split, first is bind mounted, then an attempt is done to unmount , which gives an error complaining that is not mounted. The unmount should also refer to . Fixes: 906ab4945cd3 (2021-08-20; "mount_namespaces.7: Rewrite locked mounts examples to use/etc/shadow") Closes: Signed-off-by: Göran Uddeborg Cc: Rajesh Message-ID: <26546.13734.573762.288144@gargle.gargle.HOWL> Signed-off-by: Alejandro Colomar --- diff --git a/man/man7/mount_namespaces.7 b/man/man7/mount_namespaces.7 index a1645e9e2..0e1223f99 100644 --- a/man/man7/mount_namespaces.7 +++ b/man/man7/mount_namespaces.7 @@ -1128,7 +1128,7 @@ in the following step: .EX # \fBunshare \-\-user \-\-map\-root\-user \-\-mount \[rs]\fP \fBstrace \-o /tmp/log \[rs]\fP - \fBumount /mnt/dir\fP + \fBumount /etc/shadow\fP umount: /etc/shadow: not mounted. # \fBgrep \[aq]\[ha]umount\[aq] /tmp/log\fP umount2("/etc/shadow", 0) = \-1 EINVAL (Invalid argument)