pid_namespaces.7: Parent process relationships mirror parent PID namespace relationships

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-02-28 11:53:18 +01:00
parent 7a9ab60197
commit 6e377abf9c
1 changed files with 5 additions and 0 deletions

View File

@ -182,9 +182,14 @@ because doing so would change the caller's idea of its own PID
(as reported by
.BR getpid ()),
which would break many applications and libraries.
To put things another way:
a process's PID namespace membership is determined when the process is created
and cannot be changed thereafter.
Among other things, this means that the parental relationship
between processes mirrors the parental between PID namespaces:
the parent of a process is either in the same namespace
or resides in the immediate parent PID namespace.
Every thread in a process must be in the same PID namespace.
For this reason, the two following call sequences will fail: