[sudo-commits] sudo changeset 8304:cfca0b1edf21

Todd C. Miller Todd.Miller at courtesan.com
Tue Aug 7 14:48:32 EDT 2012


changeset:	8304:cfca0b1edf21 in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/cfca0b1edf21
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Tue Aug 07 13:43:55 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:

 exec.c      |   68 ++++++++++++++++++++++---
 exec_pty.c  |  152 +++++++++++++++++++++++++++++++++++++++++++++--------------
 sudo.h      |    1 +
 sudo_exec.h |    7 ++-
 4 files changed, 180 insertions(+), 48 deletions(-)



More information about the sudo-commits mailing list