|
Bugzilla – Full Text Bug Listing |
| Summary: | Should relay SIGHUP when sudo isn't the child of a shell, but doesn't | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Peter Cordes <peter> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.8.9 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: | Diff to relay SIGHUP when not running the command in a pty | ||
|
Description
Peter Cordes
2015-09-11 23:21:49 MDT
Forgot to add, this is on Ubuntu 15.04. sudo 1.8.9p5-1ubuntu5 $ sudo --version Sudo version 1.8.9p5 Sudoers policy plugin version 1.8.9p5 Sudoers file grammar version 43 Sudoers I/O plugin version 1.8.9p5 Sudo is assuming that the kernel will send SIGUP to the process group associated with the controlling tty and not just the controlling process. While keyboard-generated signals like SIGINT and SIGQUIT are delivered to all processes in the process group, the same is not true of SIGHUP when the tty is closed. Created attachment 460 [details] Diff to relay SIGHUP when not running the command in a pty See also https://www.sudo.ws/repos/sudo/rev/b408a792f31a Fixed in sudo 1.8.15 |