aboutsummaryrefslogtreecommitdiffstats
path: root/man5/proc.5
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-06-11 10:07:53 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-06-29 07:06:28 +0200
commitaee2f0bfa1a46dbbd3ffa9d111e444504a2d02a2 (patch)
tree3a9fdd4568b79f9733c9c0b6576fb341ff651fee /man5/proc.5
parentace93363fb0306968757b79bc1893837d3db0488 (diff)
downloadman-pages-aee2f0bfa1a46dbbd3ffa9d111e444504a2d02a2.tar.gz
proc.5: Document /proc/PID/{maps,mem,pagemap} access mode checks
Permission to access /proc/PID/{maps,pagemap} is governed by a PTRACE_MODE_READ_FSCREDS ptrace access mode check. Permission to access /proc/PID/mem is governed by a PTRACE_MODE_ATTACH_FSCREDS ptrace access mode check. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man5/proc.5')
-rw-r--r--man5/proc.515
1 files changed, 15 insertions, 0 deletions
diff --git a/man5/proc.5 b/man5/proc.5
index 7da1f75b01..eba75e4dd5 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -964,6 +964,11 @@ See
.BR mmap (2)
for some further information about memory mappings.
+Permission to access this file is governed by a ptrace access mode
+.B PTRACE_MODE_READ_FSCREDS
+check; see
+.BR ptrace (2).
+
The format of the file is:
.in -7n
@@ -1074,6 +1079,11 @@ This file can be used to access the pages of a process's memory through
.BR read (2),
and
.BR lseek (2).
+
+Permission to access this file is governed by a ptrace access mode
+.B PTRACE_MODE_ATTACH_FSCREDS
+check; see
+.BR ptrace (2).
.TP
.IR /proc/[pid]/mountinfo " (since Linux 2.6.26)"
.\" This info adapted from Documentation/filesystems/proc.txt
@@ -1419,6 +1429,11 @@ The
file is present only if the
.B CONFIG_PROC_PAGE_MONITOR
kernel configuration option is enabled.
+
+Permission to access this file is governed by a ptrace access mode
+.B PTRACE_MODE_READ_FSCREDS
+check; see
+.BR ptrace (2).
.TP
.IR /proc/[pid]/personality " (since Linux 2.6.28)"
.\" commit 478307230810d7e2a753ed220db9066dfdf88718