| Summary: | uid 0, gid !=0 fools defensive check in uidswap.c | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | csmith |
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED FIXED | ||
| Severity: | minor | ||
| Priority: | P4 | ||
| Version: | 3.7.1p1 | ||
| Hardware: | All | ||
| OS: | Linux | ||
|
Description
csmith
2006-04-12 06:57:03 AEST
Thanks, but this was fixed in 4.0p1, which had this change (uidswap.c rev 1.45):
- if (old_gid != pw->pw_gid &&
+ if (old_gid != pw->pw_gid && pw->pw_uid != 0 &&
Emulating your falure case ("su - root; newgrp foo") works ok.
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4. |