]> git.ipfire.org Git - thirdparty/man-pages.git/commit
proc.5: Setting dumpable to 1 reverts ownership of /proc/PID/* to effective IDs
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 5 Jul 2018 09:36:43 +0000 (11:36 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 5 Jul 2018 16:37:54 +0000 (18:37 +0200)
commiteada5570b045578fbb52d5635cd926e7a1e9c3a6
tree85fb7c13e4928a234f6742bbcb3a9b97aa92003c
parentfb49322d22edaf6c71c196b6ecfc7b099c87a010
proc.5: Setting dumpable to 1 reverts ownership of /proc/PID/* to effective IDs

The statement that resetting the dumpable attribute of a process
to 1 causes the ownership of files to revert the process's real
IDs looked suspect. And indeed it is at odds with the code in
fs/proc/base.c::task_dump_owner() (Linux 4.16 sources).
Further verified with a quick test that resetting dumpable to 1
causes the ownership of /proc/PID/* files to revert to the
process's effective IDs. Mea culpa for the original mistake.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man5/proc.5