mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
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
6b91b72b72
commit
88522a2e3a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70350
|
@ -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 a new issue