| Summary: | [PATCH] killall(1) refuses to kill root-owned SUID-binary started by non-root | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Eugene Grosbein <ports> |
| Component: | bin | Assignee: | ps |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.2-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Eugene Grosbein
2000-12-07 15:00:02 UTC
Hi,
There is a typo in the killall.c. Here is the patch:
*** killall.c.orig Tue Dec 12 00:00:01 2000
--- killall.c Tue Dec 12 02:49:25 2000
***************
*** 248,254 ****
miblen = 3;
if (user && mib[2] == KERN_PROC_ALL) {
! mib[2] = KERN_PROC_UID;
mib[3] = uid;
miblen = 4;
}
--- 248,254 ----
miblen = 3;
if (user && mib[2] == KERN_PROC_ALL) {
! mib[2] = KERN_PROC_RUID;
mib[3] = uid;
miblen = 4;
}
The bin/17498 is obsolete, so you can close it too.
- - maxim
--
Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru
Responsible Changed From-To: freebsd-bugs->ps Over to one of the authors. State Changed From-To: open->closed fix in stable and current |