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:
Paul Saab 2000-12-25 19:26:07 +00:00
parent 6b91b72b72
commit 88522a2e3a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70350

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