From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: mtk.manpages@gmail.com, Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: [PATCH 2/2] Manual pages: unshare.1: clarify that --pid=<file> requires --fork
Date: Wed, 3 Jun 2020 09:40:57 +0200 [thread overview]
Message-ID: <20200603074057.540157-2-mtk.manpages@gmail.com> (raw)
In-Reply-To: <20200603074057.540157-1-mtk.manpages@gmail.com>
Attempting to create a persistent PID namespace with --pid=<file>
will result in an error if --fork is not also specified. Let's
warn people about that, so they don't get puzzled.
Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
---
sys-utils/unshare.1 | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/sys-utils/unshare.1 b/sys-utils/unshare.1
index 443aac658..7899db3ad 100644
--- a/sys-utils/unshare.1
+++ b/sys-utils/unshare.1
@@ -114,8 +114,13 @@ Unshare the network namespace. If \fIfile\fP is specified, then a persistent
namespace is created by a bind mount.
.TP
.BR \-p , " \-\-pid" [ =\fIfile ]
-Unshare the PID namespace. If \fIfile\fP is specified then persistent
-namespace is created by a bind mount. See also the \fB\-\-fork\fP and
+Unshare the PID namespace. If \fIfile\fP is specified, then a persistent
+namespace is created by a bind mount.
+(Creation of a persistent PID namespace will fail if the
+.B \-\-fork
+is not also specified.)
+.IP
+See also the \fB\-\-fork\fP and
\fB\-\-mount-proc\fP options.
.TP
.BR \-u , " \-\-uts" [ =\fIfile ]
--
2.26.2
next prev parent reply other threads:[~2020-06-03 7:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-03 7:40 [PATCH 1/2] Manual pages: unshare.1: clarify description and example for --mount=<path> Michael Kerrisk (man-pages)
2020-06-03 7:40 ` Michael Kerrisk (man-pages) [this message]
2020-06-03 10:22 ` [PATCH 2/2] Manual pages: unshare.1: clarify that --pid=<file> requires --fork Michael Kerrisk (man-pages)
2020-06-03 15:06 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200603074057.540157-2-mtk.manpages@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=kzak@redhat.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).