From 336113bc0d2ea66d44a9f1fb7dee06b04e1cb8da Mon Sep 17 00:00:00 2001 From: Craig Ringer Date: Mon, 14 Mar 2022 13:52:28 +0800 Subject: [PATCH v1 4/4] Additional namespaces related x-refs Signed-off-by: Craig Ringer --- man5/proc.5 | 9 +++++++++ man7/mount_namespaces.7 | 1 + man7/pid_namespaces.7 | 2 ++ 3 files changed, 12 insertions(+) diff --git a/man5/proc.5 b/man5/proc.5 index 87445fd55..dbc064996 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -1539,6 +1539,10 @@ process's mount namespace (see The format of this file is documented in .BR fstab (5). .IP +.BR /proc/[pid]/mountinfo +provides more detail than +.BR /proc/[pid]/mounts "." +.IP Since kernel version 2.6.15, this file is pollable: after opening the file for reading, a change in this file (i.e., a filesystem mount or unmount) causes @@ -2099,6 +2103,11 @@ This is used by It is defined in the kernel source file .IR fs/proc/array.c "." .IP +The newer +.B /proc/[pid]/status +provides more details and is easier to use than +.B /proc/[pid]/stat "." +.IP The fields, in order, with their proper .BR scanf (3) format specifiers, are listed below. diff --git a/man7/mount_namespaces.7 b/man7/mount_namespaces.7 index 98bfd864c..d206d4bc1 100644 --- a/man7/mount_namespaces.7 +++ b/man7/mount_namespaces.7 @@ -1344,6 +1344,7 @@ See .BR pivot_root (2). .SH SEE ALSO .BR unshare (1), +.BR nsenter (1), .BR clone (2), .BR mount (2), .BR mount_setattr (2), diff --git a/man7/pid_namespaces.7 b/man7/pid_namespaces.7 index 52a40f544..f202feedc 100644 --- a/man7/pid_namespaces.7 +++ b/man7/pid_namespaces.7 @@ -436,3 +436,5 @@ See .BR namespaces (7), .BR user_namespaces (7), .BR switch_root (8) +.BR nsenter (1) +.BR unshare(1) -- 2.34.1