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 <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-05-23 21:41:42 +02:00
parent 7cae1f4a76
commit df984681fb
1 changed files with 4 additions and 0 deletions

View File

@ -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