diff options
| -rw-r--r-- | man7/pid_namespaces.7 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/man7/pid_namespaces.7 b/man7/pid_namespaces.7 index d762df2031..8b40704fd8 100644 --- a/man7/pid_namespaces.7 +++ b/man7/pid_namespaces.7 @@ -330,6 +330,24 @@ when a process wants to discover its PID in other namespaces. .\" .\" ============================================================ .\" +.SS /proc files +.TP +.BR /proc/sys/kernel/ns_last_pid " (since Linux 3.3)" +.\" commit b8f566b04d3cddd192cfd2418ae6d54ac6353792 +This file displays the last PID that was allocated in this PID namespace. +When the next PID is allocated, +the kernel will search for the lowest unallocated PID +that is greater than this value, +and when this file is subsequently read it will show that PID. +.IP +This file is writable by a process that has the +.B CAP_SYS_ADMIN +capability inside its user namespace. +This makes it possible to determine the PID that is allocated +to the next process that is created inside this PID namesapce. +.\" +.\" ============================================================ +.\" .SS Miscellaneous When a process ID is passed over a UNIX domain socket to a process in a different PID namespace (see the description of |
