aboutsummaryrefslogtreecommitdiffstats
path: root/man7/pid_namespaces.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2013-02-28 11:53:18 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-09-13 20:16:00 -0700
commit6e377abf9c61b4fd1605fa9528b68c380de5d5bf (patch)
treef23b22323826e60b4c2dc76828d2a2085b0315ad /man7/pid_namespaces.7
parent7a9ab60197d2678dcdd25a480829e29dfe8b3649 (diff)
downloadman-pages-6e377abf9c61b4fd1605fa9528b68c380de5d5bf.tar.gz
pid_namespaces.7: Parent process relationships mirror parent PID namespace relationships
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/pid_namespaces.7')
-rw-r--r--man7/pid_namespaces.75
1 files changed, 5 insertions, 0 deletions
diff --git a/man7/pid_namespaces.7 b/man7/pid_namespaces.7
index 042bd4f678..5e49633cc2 100644
--- a/man7/pid_namespaces.7
+++ b/man7/pid_namespaces.7
@@ -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: