diff options
| author | Keno Fischer <keno@juliacomputing.com> | 2020-04-12 04:09:30 -0400 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-04-13 09:25:22 +0200 |
| commit | 6a036b00bd3838cd944eeb41f250b656771336d2 (patch) | |
| tree | 224289a02d78d52034c566414ab8c875add86ab2 /man5 | |
| parent | d31cdf430e88d3031732f400be003ab9850c8531 (diff) | |
| download | man-pages-6a036b00bd3838cd944eeb41f250b656771336d2.tar.gz | |
proc.5: Fix an outdated note about map_files
The restriction to CAP_SYS_ADMIN was removed from map_files in
2015 [1]. There was a fixme that indicted this might happen, but
the main text was never updated when this commit landed. While
we're at it, add a note about the ptrace access check that is
still required.
[1] https://github.com/torvalds/linux/commit/bdb4d100afe9818aebd1d98ced575c5ef143456c
Signed-off-by: Keno Fischer <keno@juliacomputing.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man5')
| -rw-r--r-- | man5/proc.5 | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/man5/proc.5 b/man5/proc.5 index 21b73d7aa0..6801447666 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -1248,16 +1248,18 @@ lrw\-\-\-\-\-\-\-. 1 root root 64 Apr 16 21:33 .EE .in .IP -This directory appears only if the +Permission to access this file is governed by a ptrace access mode +.B PTRACE_MODE_READ_FSCREDS +check; see +.BR ptrace (2). +.IP +.\" This permissions check got removed in kernel commit bdb4d100a +Until kernel version 4.3, this directory appeared only if the .B CONFIG_CHECKPOINT_RESTORE -kernel configuration option is enabled. -Privilege +kernel configuration option was enabled. +Additionally, in those kernel versions, privilege .RB ( CAP_SYS_ADMIN ) -.\" FIXME -.\" This may change. See the mail thread -.\" "[RFC][PATCH v2] procfs: Always expose /proc/<pid>/map_files/ and make it readable" -.\" from Jan 2015 -is required to view the contents of this directory. +was required to view the contents of this directory. .TP .I /proc/[pid]/maps A file containing the currently mapped memory regions and their access |
