aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-06-11 12:04:26 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-06-29 07:06:29 +0200
commit408c8172e4ee7fb34a9f2473b951f1b12f7d171d (patch)
tree7047005b00789a4f31648a06080a9a05bd8701bb
parentb02b4b74d57a7ff82b445f552e71a9938be91d2a (diff)
downloadman-pages-408c8172e4ee7fb34a9f2473b951f1b12f7d171d.tar.gz
process_vm_readv.2: Rephrase permission rules in terms of a ptrace access mode check
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/process_vm_readv.218
1 files changed, 5 insertions, 13 deletions
diff --git a/man2/process_vm_readv.2 b/man2/process_vm_readv.2
index a9605a8860..7aa726457b 100644
--- a/man2/process_vm_readv.2
+++ b/man2/process_vm_readv.2
@@ -209,19 +209,11 @@ entry.
The first read entry goes up to the page boundary,
while the second starts on the next page boundary.)
-In order to read from or write to another process,
-either the caller must have the capability
-.BR CAP_SYS_PTRACE ,
-or
-the real user ID, effective user ID, and saved set-user-ID
-of the remote process must match the real user ID of the caller
-.I and
-the real group ID, effective group ID, and saved set-group-ID
-of the remote process must match the real group ID of the caller.
-(The permission required is exactly the same as that required to perform a
-.BR ptrace (2)
-.BR PTRACE_ATTACH
-on the remote process.)
+Permission to read from or write to another process
+is governed by a ptrace access mode
+.B PTRACE_MODE_ATTACH_REALCREDS
+check; see
+.BR ptrace (2).
.SH RETURN VALUE
On success,
.BR process_vm_readv ()