[sudo-commits] sudo changeset 8298:4ffab9ab9e98
Todd C. Miller
Todd.Miller at courtesan.com
Tue Aug 7 10:53:41 EDT 2012
changeset: 8298:4ffab9ab9e98 in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/4ffab9ab9e98
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Mon Aug 06 14:38:35 2012 -0400
Log Message:
If we receive a signal from the command we executed, do not forward
it back to the command. This fixes a problem with BSD-derived
versions of the reboot command which send SIGTERM to all other
processes, including the sudo process. Sudo would then deliver
SIGTERM to reboot which would die before calling the reboot() system
call, effectively leaving the system in single user mode.
diffstat:
src/exec.c | 69 ++++++++++++++++++++++---
src/exec_pty.c | 149 +++++++++++++++++++++++++++++++++++++++++--------------
src/sudo.h | 1 +
src/sudo_exec.h | 9 ++-
4 files changed, 178 insertions(+), 50 deletions(-)
More information about the sudo-commits
mailing list