aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man7/pid_namespaces.77
1 files changed, 7 insertions, 0 deletions
diff --git a/man7/pid_namespaces.7 b/man7/pid_namespaces.7
index 5e49633cc2..b1a40f1f96 100644
--- a/man7/pid_namespaces.7
+++ b/man7/pid_namespaces.7
@@ -234,6 +234,13 @@ then it isn't necessary to change the root directory:
a new procfs instance can be mounted directly over
.IR /proc .)
+Calling
+.BR readlink (2)
+on the path
+.I /proc/self
+yields the process ID of the caller in the PID namespace of the procfs mount
+(i.e., the PID namespace of the process that mounted the procfs).
+
When a process ID is passed over a UNIX domain socket to a
process in a different PID namespace (see the description of
.B SCM_CREDENTIALS