diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2018-08-03 07:30:17 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2018-08-03 07:30:17 +0200 |
| commit | 9a6d888cb624999b7b46c492bfec34221264ca1f (patch) | |
| tree | a0497d97ffa92123d7785c05a20d6f9e008fd9dc /man7 | |
| parent | 2337d75ee0b54276d7f58b3ce0a3823e0d7db34a (diff) | |
| download | man-pages-9a6d888cb624999b7b46c492bfec34221264ca1f.tar.gz | |
namespaces.7: List factors that may pin a namespace into existence
Various factors may pin a namespace into existence, even when it
has no member processes.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
| -rw-r--r-- | man7/namespaces.7 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/man7/namespaces.7 b/man7/namespaces.7 index 3c155de7ec..df6d87420f 100644 --- a/man7/namespaces.7 +++ b/man7/namespaces.7 @@ -412,6 +412,38 @@ and Use of UTS namespaces requires a kernel that is configured with the .B CONFIG_UTS_NS option. +.\" +.SS Namespace lifetime +Absent any other factors, +a namespace is automatically torn down when the last process in +the namespace terminates or leaves the namespace. +However, there are a number of other factors that may pin +a namespace into existence even though it has no member processes. +These factors include the following: +.IP * 3 +An open file descriptor or a bind mount exists for the corresponding +.IR /proc/[pid]/ns/* +file. +.IP * +The namespace is hierarchical (i.e., a PID or user namespace), +and has a child namespace. +.IP * +It is a user namespace that owns one or more nonuser namespaces. +.IP * +It is a PID namespace, +and there is a process that refers to the namespace via a +.IR /proc/[pid]/ns/pid_for_children +symbolic link. +.IP * +It is an IPC namespace, and a corresponding mount of an +.I mqueue +filesystem (see +.BR mq_overview (7)) +refers to this namespace. +.IP * +It is an PID namespace, and a corresponding mount of a +.BR proc (5) +filesystem refers to this namespace. .SH EXAMPLE See .BR clone (2) |
