mirror of https://github.com/mkerrisk/man-pages
mount_namespaces.7: Explain how a namespace's mount point list is initialized
Provide a more detailed explanation of the initialization of the mount point list in a new mount namespace. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
47b69a37cf
commit
534755eed9
|
@ -48,15 +48,26 @@ resides.
|
|||
(All of the processes that reside in the same mount namespace
|
||||
will see the same view in these files.)
|
||||
.PP
|
||||
When a process creates a new mount namespace using
|
||||
A new mount namespace is created using either
|
||||
.BR clone (2)
|
||||
or
|
||||
.BR unshare (2)
|
||||
with the
|
||||
.BR CLONE_NEWNS
|
||||
flag, the mount point list for the new namespace is a
|
||||
.I copy
|
||||
of the caller's mount point list.
|
||||
flag.
|
||||
When a new mount namespace is created,
|
||||
its mount point list is initialized as follows:
|
||||
.IP * 3
|
||||
If the namespace is created using
|
||||
.BR clone (2),
|
||||
the mount point list of the child's namespace is a copy
|
||||
of the mount point list in the parent's namespace.
|
||||
.IP *
|
||||
If the namespace is created using
|
||||
.BR unshare (2),
|
||||
the mount point list of the new namespace is a copy of
|
||||
the mount point list in the caller's previous mount namespace.
|
||||
.PP
|
||||
Subsequent modifications to the mount point list
|
||||
.RB ( mount (2)
|
||||
and
|
||||
|
|
Loading…
Reference in New Issue