aboutsummaryrefslogtreecommitdiffstats
path: root/man7/namespaces.7
diff options
context:
space:
mode:
Diffstat (limited to 'man7/namespaces.7')
-rw-r--r--man7/namespaces.737
1 files changed, 27 insertions, 10 deletions
diff --git a/man7/namespaces.7 b/man7/namespaces.7
index 23a228421b..248de394ef 100644
--- a/man7/namespaces.7
+++ b/man7/namespaces.7
@@ -92,16 +92,6 @@ is equivalent in namespace terms to:
if (fork() == 0) /* if child */
unshare(CLONE_NEWXXX);
-.SS Mount namespaces (CLONE_NEWNS)
-
-Mount namespaces isolate the set of file system mount points,
-meaning that processes in different mount namespaces can
-have different views of the file system hierarchy.
-The set of mounts in a mount namespace is modified using
-.BR mount (2)
-and
-.BR umount (2).
-
.SS IPC namespaces (CLONE_NEWIPC)
IPC namespaces isolate certain IPC resources,
@@ -121,6 +111,33 @@ directory,
.I /sys/class/net
directory, port numbers, and so on.
+.SS Mount namespaces (CLONE_NEWNS)
+
+Mount namespaces isolate the set of file system mount points,
+meaning that processes in different mount namespaces can
+have different views of the file system hierarchy.
+The set of mounts in a mount namespace is modified using
+.BR mount (2)
+and
+.BR umount (2).
+
+The
+.IR /proc/[pid]/mounts
+file (present since Linux 2.4.19)
+lists all the file systems currently mounted in the
+process's mount namespace.
+The format of this file is documented in
+.BR fstab (5).
+Since kernel version 2.6.15, this file is pollable:
+after opening the file for reading, a change in this file
+(i.e., a file system mount or unmount) causes
+.BR select (2)
+to mark the file descriptor as readable, and
+.BR poll (2)
+and
+.BR epoll_wait (2)
+mark the file as having an error condition.
+
.SS PID namespaces (CLONE_NEWPID)
PID namespaces isolate the process ID number space,