|
Bugzilla – Full Text Bug Listing |
| Summary: | visudo unused alias checking not working | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Dale King <daleking> |
| Component: | Visudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: | fix for check_aliases | ||
|
Description
Dale King
2008-11-17 23:42:06 MST
Sounds like I didn't update the alias checking in visudo to match other changes in the parser proper. I'll take a look. Created attachment 237 [details]
fix for check_aliases
This patch brings visudo back in line with the main parser.
Hi, The fix works on a simple sudoers file but segfaults or complains about references (on both linux and AIX) when there are aliases of different types with the same name: Reproducible with a simple sudoers file: --- User_Alias FRED = fred User_Alias BOB = bob Cmnd_Alias FRED = /bin/sh Cmnd_Alias BOB = /bin/csh BOB ALL=(root) BOB FRED ALL=(root) FRED --- This was allowable under older versions of visudo. That looks like a bug in the redblack delete code. I'll let you know when I have debugged it. Please try the following: ftp://ftp.sudo.ws/pub/millert/sudo/sudo-1.7.0rc6.tar.gz Thanks Todd! Working happily now. I still have a minor issue with visudo and comments that I'll raise a separate bug for. |