diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2017-10-23 17:27:58 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2017-10-23 17:27:58 +0200 |
| commit | 10bd75534ec3062dbb2d6037174c83e913d7aa88 (patch) | |
| tree | a8bf6f15e9545b4ee9e7f20fe33df897c5f0a4b6 /man7/pid_namespaces.7 | |
| parent | e789e07cb127a01f03ecec947dc96b453449f270 (diff) | |
| download | man-pages-10bd75534ec3062dbb2d6037174c83e913d7aa88.tar.gz | |
pid_namespaces.7: Document /proc/sys/kernel/ns_last_pid
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/pid_namespaces.7')
| -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 |
