proc.5: Update capability requirements for accessing /proc/[pid]/map_files

The requirements changed with kernel commit 12886f8ab10ce6.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-10-27 13:34:31 +01:00
parent 1e516a820b
commit 167f94b707
1 changed files with 10 additions and 3 deletions

View File

@ -1261,9 +1261,16 @@ Until kernel version 4.3,
this directory appeared only if the
.B CONFIG_CHECKPOINT_RESTORE
kernel configuration option was enabled.
Additionally, in those kernel versions, privilege
.RB ( CAP_SYS_ADMIN )
was required to view the contents of this directory.
.IP
Capabilities are required to read the contents of the symbolic links in
this directory: before Linux 5.9, the reading process requires
.BR CAP_SYS_ADMIN
in the initial user namespace;
since Linux 5.9, the reading process must have either
.BR CAP_SYS_ADMIN
or
.BR CAP_CHECKPOINT_RESTORE
in the user namespace where it resides.
.TP
.I /proc/[pid]/maps
A file containing the currently mapped memory regions and their access