]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Manual pages: unshare.1: clarify description and example for --mount=<path>
authorMichael Kerrisk (man-pages) <mtk.manpages@gmail.com>
Wed, 3 Jun 2020 07:40:56 +0000 (09:40 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Jun 2020 15:03:56 +0000 (17:03 +0200)
commit48994386a169b05dd258c3b044b1ed666692ff72
tree0ae56f6a0c842e26b3d5005c0ac4173ed8eb7069
parentb3391f3ac790b52ec14d763c0ff5cde808309d76
Manual pages: unshare.1: clarify description and example for --mount=<path>

The existing text is not quite accurate, and I recently injected an
error into the EXAMPLES. This patch fixes both issues.

The text in DESCRIPTION incorrectly states that the propagation type of
the parent mount must be "private". This is not accurate.  Rather, the
propagation type must be something *other than "shared"* (i.e.,
"private", "slave", or "unbindable").

In the EXAMPLES section, I added text that implies that if the
propagation type of the parent mount is "shared", then the child mount
created by --mount=<path> might propagate to another namespace.
Rather, in this situation, an error would result. Clarify that.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
sys-utils/unshare.1