mirror of https://github.com/mkerrisk/man-pages
Update proc.5
Since 2011, /proc/pid/mem interface is possible to be written via write(2) syscall: https://lwn.net/Articles/432347/ https://lwn.net/Articles/433326/ An example where this feature is used is in the Google CTF 2020 "WriteOnly" challenge.
This commit is contained in:
parent
7d9746136e
commit
4568d86c38
|
@ -1399,9 +1399,12 @@ Under Linux 2.0, there is no field giving pathname.
|
||||||
This file can be used to access the pages of a process's memory through
|
This file can be used to access the pages of a process's memory through
|
||||||
.BR open (2),
|
.BR open (2),
|
||||||
.BR read (2),
|
.BR read (2),
|
||||||
|
.BR write(2),
|
||||||
and
|
and
|
||||||
.BR lseek (2).
|
.BR lseek (2).
|
||||||
.IP
|
.IP
|
||||||
|
Permission to use the write(2) syscall is allowed only if the caller of write(2) is the parent process of the [pid] to be written.
|
||||||
|
.IP
|
||||||
Permission to access this file is governed by a ptrace access mode
|
Permission to access this file is governed by a ptrace access mode
|
||||||
.B PTRACE_MODE_ATTACH_FSCREDS
|
.B PTRACE_MODE_ATTACH_FSCREDS
|
||||||
check; see
|
check; see
|
||||||
|
|
Loading…
Reference in New Issue