From 4d4f56baad602e05a9e48ac96f94d6e8d3702c7f Mon Sep 17 00:00:00 2001 From: "Michael Kerrisk (man-pages)" Date: Wed, 3 Jun 2020 09:40:57 +0200 Subject: [PATCH] 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 --- 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 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 ] -- 2.47.2