added support for effective UID/username change detection

This commit is contained in:
Martin "eto" Misuth 2015-12-11 11:01:24 +01:00
parent 563abbc44b
commit bc84920b91
1 changed files with 4 additions and 0 deletions

View File

@ -224,6 +224,10 @@ void ProcessList_goThroughEntries(ProcessList* this) {
free(fp->jname);
fp->jname = FreeBSDProcessList_readJailName(kproc);
}
if(proc->st_uid != kproc->ki_uid) {
proc->st_uid = kproc->ki_uid;
proc->user = UsersTable_getRef(this->usersTable, proc->st_uid);
}
if (settings->updateProcessNames) {
free(proc->comm);
proc->comm = FreeBSDProcessList_readProcessName(fpl->kd, kproc, &proc->basenameOffset);