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:
ps 2000-12-25 19:26:07 +00:00
parent 2d93aae515
commit a7fe3f8159

View File

@ -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;
}