mirror of https://github.com/mkerrisk/man-pages
execve.2: Changes to the "dumpable" flag may change ownership of /proc/PID files
Reported-by: Eric Hopper <hopper@omnifarious.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
279aae0369
commit
bf85b5e63a
|
@ -210,8 +210,7 @@ The following Linux-specific process attributes are also
|
|||
not preserved during an
|
||||
.BR execve ():
|
||||
.IP * 3
|
||||
The process's dumpable
|
||||
flag is set to the value 1,
|
||||
The process's "dumpable" attribute is set to the value 1,
|
||||
unless a set-user-ID program, a set-group-ID program,
|
||||
or a program with capabilities is being executed,
|
||||
in which case the dumpable flag may instead be reset to the value in
|
||||
|
@ -220,6 +219,13 @@ in the circumstances described under
|
|||
.BR PR_SET_DUMPABLE
|
||||
in
|
||||
.BR prctl (2).
|
||||
Note that changes to the "dumpable" attribute may cause ownership
|
||||
of files in the process's
|
||||
.IR /proc/[pid]
|
||||
directory to change to
|
||||
.IR root:root ,
|
||||
as described in
|
||||
.BR proc (5).
|
||||
.IP *
|
||||
The
|
||||
.BR prctl (2)
|
||||
|
|
Loading…
Reference in New Issue