|
Bugzilla – Full Text Bug Listing |
| Summary: | sudo segfaults when "Defaults mailerpath" is set in sudoers | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Kim Scarborough <kim> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.8.27 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Kim Scarborough
2019-04-18 12:31:33 MDT
Possibly related: Arch upgraded glibc 2.28 last week. But I hadn't been running this configuration before today, so I can't tell you if it worked before. I tried downgrading glibc and sudo but I still get the error. Do you have mailerflags set in sudoers as well? No other mail-related commands in my sudoers. I can post the whole thing if you like, it's only a few lines. Also, I tried changing the mailerpath to a script that just records the arguments to see how it was invoking sendmail. The script didn't execute at all, so it looks like this segfault is happening before the invocation. Thanks, that is helpful. I haven't been able to reproduce this on other Linux systems so I installed arch linux in a VM and can reproduce it there. However, if I rebuild sudo from source the crash no longer occurs. I see the problem. Since sendmail was not detected during build, mailerflags was not set. You can work around this by adding: Defaults mailerflags="-t" to sudoers. I have committed a fix for the issue: https://www.sudo.ws/repos/sudo/rev/6c57f5ddca54 Fixed in sudo 1.8.28 |