From: Michael Kerrisk (man-pages) Date: Thu, 28 May 2020 14:58:15 +0000 (+0200) Subject: Manual pages: unshare.1: EXAMPLES: improve persistent mount namespace example X-Git-Tag: v2.36-rc1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8176639daf594d217e1b1ac7935235de9065303;p=thirdparty%2Futil-linux.git Manual pages: unshare.1: EXAMPLES: improve persistent mount namespace example The text describing the persistent mount namespace example is rather confused. Explain more clearly the purpose of making the parent directory a bind mount with private propagation. Also make a few other wording improvements. Signed-off-by: Michael Kerrisk (man-pages) --- diff --git a/sys-utils/unshare.1 b/sys-utils/unshare.1 index ea170b13a4..e3a23f78c3 100644 --- a/sys-utils/unshare.1 +++ b/sys-utils/unshare.1 @@ -304,9 +304,16 @@ FOO .EE .in .PP -Establish a persistent mount namespace referenced by the bind mount -/root/namespaces/mnt. This example shows a portable solution, because it -makes sure that the bind mount is created on a shared filesystem. +The following commands +establish a persistent mount namespace referenced by the bind mount +.IR /root/namespaces/mnt . +In order to ensure that this bind mount does not get propagated +to other mount namespaces, +the parent directory +.RI ( /root/namespaces ) +is first made a bind mount with +.I private +propagation. .PP .in +4n .EX