Commit bc84920b authored by Martin "eto" Misuth's avatar Martin "eto" Misuth
Browse files

added support for effective UID/username change detection

parent 563abbc4
...@@ -224,6 +224,10 @@ void ProcessList_goThroughEntries(ProcessList* this) { ...@@ -224,6 +224,10 @@ void ProcessList_goThroughEntries(ProcessList* this) {
free(fp->jname); free(fp->jname);
fp->jname = FreeBSDProcessList_readJailName(kproc); 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) { if (settings->updateProcessNames) {
free(proc->comm); free(proc->comm);
proc->comm = FreeBSDProcessList_readProcessName(fpl->kd, kproc, &proc->basenameOffset); proc->comm = FreeBSDProcessList_readProcessName(fpl->kd, kproc, &proc->basenameOffset);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment