proc.5: Alert the reader that UID/GID changes can reset the "dumpable" attribute

Reported-by: Eric Hopper <hopper@omnifarious.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-04-21 14:27:34 +02:00
parent 314f7c114e
commit 0368720957
1 changed files with 6 additions and 0 deletions

View File

@ -278,6 +278,12 @@ The attribute was reset to the value in the file
Resetting the "dumpable" attribute to 1 reverts the ownership of the
.IR /proc/[pid]/*
files to the process's effective UID and GID.
Note, however, that if the effective UID or GID is subsequently modified,
then the "dumpable" attribute may be reset, as described in
.BR prctl (2).
Therefore, it may be desirable to reset the "dumpable" attribute
.I after
making any desired changes to the process's effective UID or GID.
.TP
.I /proc/[pid]/attr
.\" https://lwn.net/Articles/28222/