sudo ignores SIGPIPE and hangs
Radovan Sroka <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi sudo-workers,
Sudo ignores SIGPIPE until the command is executed since 1.8.17b4.
When pam_session, pam_setcred and use_pty are disabled sudo will not fork just exec,
and SIGPIPE will be still ignored so e.g. this usecase will hang.
Set Defaults !pam_session
Defaults !pam_setcred
Defaults !use_pty
And run:
sudo -k; sudo bash -c "yes | fold | head -n1"
After that sudo hangs.
What do you think?
---------------------------------------------------------
Radovan Sroka
Security Technologies | Red hat, Inc.
____________________________________________________________
sudo-workers mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-workers