From df984681fb04908351918d64a48703c0c986d0e5 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 23 May 2017 21:41:42 +0200 Subject: [PATCH] pid_namespaces.7: Mention /proc/[pid]/ns/pid_for_children Mention /proc/[pid]/ns/pid_for_children in discussion of setns()/unshare(). Signed-off-by: Michael Kerrisk --- man7/pid_namespaces.7 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/man7/pid_namespaces.7 b/man7/pid_namespaces.7 index 025df56e3..cbb03233b 100644 --- a/man7/pid_namespaces.7 +++ b/man7/pid_namespaces.7 @@ -221,6 +221,10 @@ with the .BR CLONE_NEWPID flag cause children subsequently created by the caller to be placed in a different PID namespace from the caller. +(Since Linux 4.12, that PID namespace is shown via the +.IR /proc/[pid]/ns/pid_for_children +file, as described in +.BR namespaces (7).) These calls do not, however, change the PID namespace of the calling process, because doing so would change the caller's idea of its own PID