[sudo-commits] sudo changeset 10191:572374035897
Todd C. Miller
Todd.Miller at courtesan.com
Mon Sep 7 06:06:15 MDT 2015
changeset: 10191:572374035897 in /media/repos/sudo
details: http://www.sudo.ws/repos/sudo/rev/572374035897
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Mon Sep 07 06:06:08 2015 -0600
Log Message:
Implement suspend/resume callbacks for the conversation function.
If suspended, close the timestamp file (dropping all locks). On
resume, lock the record before reading the password.
For this to work properly we need to be able to run th callback
when tsetattr() suspends us, not just when the user does. To
accomplish this the term_* functions now return EINTR if SIGTTOU
would be generated. The caller now has to restart the term_*
function (and send itself SIGTTOU) instead of it being done
automatically.
diffstat:
lib/util/term.c | 24 ---------------
plugins/sudoers/check.c | 59 +++++++++++++++++++++++++++++++++-----
plugins/sudoers/sudoreplay.c | 7 +++-
src/tgetpass.c | 68 ++++++++++++++++++++++++++++++++-----------
4 files changed, 106 insertions(+), 52 deletions(-)
More information about the sudo-commits
mailing list