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,
|
The first read entry goes up to the page boundary,
|
||||||
while the second starts on the next page boundary.)
|
while the second starts on the next page boundary.)
|
||||||
|
|
||||||
In order to read from or write to another process,
|
Permission to read from or write to another process
|
||||||
either the caller must have the capability
|
is governed by a ptrace access mode
|
||||||
.BR CAP_SYS_PTRACE ,
|
.B PTRACE_MODE_ATTACH_REALCREDS
|
||||||
or
|
check; see
|
||||||
the real user ID, effective user ID, and saved set-user-ID
|
.BR ptrace (2).
|
||||||
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.)
|
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
On success,
|
On success,
|
||||||
.BR process_vm_readv ()
|
.BR process_vm_readv ()
|
||||||
|
|
Loading…
Reference in New Issue