mirror of https://github.com/mkerrisk/man-pages
cgroup_namespaces.7: Add some further explanation of the example shell session
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a2e2611cf1
commit
89cbd279f4
|
@ -111,7 +111,21 @@ $ \fBcat /proc/20124/cgroup | grep freezer\fP
|
|||
7:freezer:/../sub2
|
||||
.in
|
||||
.fi
|
||||
|
||||
.PP
|
||||
From the output of the first command,
|
||||
we see that the freezer cgroup membership of the new shell
|
||||
(which is in the same cgroup as the initial shell)
|
||||
is shown defined relative to the freezer cgroup root directory
|
||||
that was established when the new cgroup namespace was created.
|
||||
(In absolute terms,
|
||||
the new shell is in the
|
||||
.I /sub
|
||||
freezer cgroup,
|
||||
and the root directory of the freezer cgroup hierarchy
|
||||
in the new cgroup namespace is also
|
||||
.IR /sub .
|
||||
Thus, the new shell's cgroup membership is displayed as \(aq/\(aq.)
|
||||
.PP
|
||||
However, when we look in
|
||||
.IR /proc/self/mountinfo
|
||||
we see the following anomaly:
|
||||
|
|
Loading…
Reference in New Issue