|
Bugzilla – Full Text Bug Listing |
| Summary: | command_matches() problem | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Julian Clifton-Thompson <julianrct> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.6.8 | ||
| Hardware: | Sun | ||
| OS: | Solaris 2.x | ||
|
Description
Julian Clifton-Thompson
2006-12-04 08:35:29 MST
The reason for the dev/inode check is to make sudo work with relative pathnames and automounters that use symlinks as opposed to mounting things in place (e.g. old sun automounter and amd). However, I believe that changes in the handling of "ALL" in sudo 1.6.9 should work around the issue for you. There is a release candidate for sudo 1.6.9 which you can download from http://www.sudo.ws/sudo/beta.wml. If you could give that a spin and let me know if that fixes the issue for you that would be great. Hey Todd, I tried 1.6.9rc2 but still the problem exists. I've cut down the /etc/sudoers file to: Cmnd_Alias SYSVPS=/usr/bin/ps Cmnd_Alias UCBPS=/usr/ucb/ps myuser ALL=(ALL) ALL If I comment out the UCBPS definition then all works well. Otherwise, the /usr/ucb/ps is always picked up instead of /usr/bin/ps, even when invoking "sudo /usr/bin/ps -ef". Please let me know if there's any further testing you'd like me to perform. Many thanks, Julian OK, I understand the problem better now. I had been assuming that ps was choosing its behavior based on argv[0] but it seems the Solaris kernel has some other way of indicating to the process the pathname that it was invoked as. I've added a workaround to sudo 1.6.8rc3 that should fix this for you. Please give ftp://ftp.sudo.ws/pub/sudo/beta/sudo-1.6.9rc3.tar.gz a try. Hey Todd, That's great - I can confirm that 1.6.9rc3 fixes the problem, and I'm able to invoke either of the ps programs using the sample config I listed before. Many thanks for your help. Regards, Julian Marking as fixed now that 1.6.9 is out. |