From: Michael Kerrisk (man-pages) Date: Wed, 3 Jun 2020 07:40:57 +0000 (+0200) Subject: Manual pages: unshare.1: clarify that --pid= requires --fork X-Git-Tag: v2.36-rc1~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d4f56baad602e05a9e48ac96f94d6e8d3702c7f;p=thirdparty%2Futil-linux.git Manual pages: unshare.1: clarify that --pid= requires --fork Attempting to create a persistent PID namespace with --pid= 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) Signed-off-by: Karel Zak --- diff --git a/sys-utils/unshare.1 b/sys-utils/unshare.1 index 443aac658b..5292880afb 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 +option is not also specified.) +.IP +See also the \fB\-\-fork\fP and \fB\-\-mount-proc\fP options. .TP .BR \-u , " \-\-uts" [ =\fIfile ]