|
Bugzilla – Full Text Bug Listing |
| Summary: | sudo sometimes generates stack smashing exception | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Fred Austin <fred.austin> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.4 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: | patch to fall back to group file when no supplemental groups exist | ||
|
Description
Fred Austin
2010-12-18 11:30:11 MST
Can you provide additional details, such as the entire error message? Is the stack smashing exception coming from gcc's stack protector or from glibc? I've built sudo with -Wstack-protector on gcc 4.4.3 and am unable to trigger a problem. After other changes that have been made, I am unable to trigger the stack smashing exception on the system. I have someone else building a new system today, if they can duplicate the problem I will provide more details. The only issue that is consistent is that sudo will prompt for a password during the bootup sequence if only the group wheel is configured to execute commands without a password, rather then the userid itself. This was not the case running sudo 1.6.9 on a 2.6.25 kernel. The reason sudo is prompting for a password is that during bootup the root user has no supplemental group ids and so it is not actually in group wheel. Older versions of sudo used the group file directly instead of using supplemental group ids, but this caused problems when multiple group sources were defined in nsswitch.conf. It would be possible to fall back to the /etc/group file if there are not supplemental groups but this makes it impossible for a program to drop its groups before executing sudo to prevent group matches. This may not be a big deal. I'll attach a diff that enables fallback in this case. Created attachment 297 [details]
patch to fall back to group file when no supplemental groups exist
Thank-you If the other person can not reproduce the stack smashing problem by the end of today then I think we should drop the bug. As I often say, there is no sense in chasing after ghosts. We now have indications of a problem somewhere else, I think we should drop this bug. Thank-you for your time. |