]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/procutils: notice setuid() process ownership changes
authorSami Kerola <kerolasa@iki.fi>
Sun, 20 Apr 2014 09:36:05 +0000 (10:36 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 26 Apr 2014 18:04:57 +0000 (19:04 +0100)
commit1786a9ac2b32d2259d765f54563657a2116eb792
treec855cb92a391d925975e72b162af01bd1e6c60f0
parent5889fbe592457afa51da684df9337f1588469ffa
lib/procutils: notice setuid() process ownership changes

Earlier the owner of a process was determined by owner of the
/proc/<pid>/stat file.  When changes user ID privileges with setuid() the
stat file ownership is not updated, that resulted kill(1) to consider
such processes where running using same uid as the present process.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
lib/procutils.c