mirror of https://github.com/mkerrisk/man-pages
process_vm_readv.2: Rephrase permission rules in terms of a ptrace access mode check
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
b02b4b74d5
commit
408c8172e4
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue