Use the real user ID so non-root users can kill setuid processes
they started. PR: 23356 Submitted by: Maxim Konovalov <maxim@macomnet.ru>
This commit is contained in:
parent
2d93aae515
commit
a7fe3f8159
@ -248,7 +248,7 @@ main(int ac, char **av)
|
||||
miblen = 3;
|
||||
|
||||
if (user && mib[2] == KERN_PROC_ALL) {
|
||||
mib[2] = KERN_PROC_UID;
|
||||
mib[2] = KERN_PROC_RUID;
|
||||
mib[3] = uid;
|
||||
miblen = 4;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user