diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-06-09 11:13:39 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-06-09 22:52:18 +0200 |
commit | 9114cf6ea3771c55cdaaa3af8583feaf0514d956 (patch) | |
tree | aa4cab368f9f3489f336ca1d921221c370c69b7d /Process.c | |
parent | faabbaa71ec09c0dc8a013f412b38726eec4e899 (diff) |
Linux: update process uid on change
Always check if the user of a process changed, e.g. by using setuid(2).
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -968,6 +968,7 @@ void Process_init(Process* this, const Settings* settings) { this->show = true; this->updated = false; this->cmdlineBasenameEnd = -1; + this->st_uid = (uid_t)-1; if (Process_getuid == (uid_t)-1) { Process_getuid = getuid(); |