[sudo-commits] sudo changeset 14530:44bb3267a55e

Todd C. Miller Todd.Miller at sudo.ws
Thu Feb 2 20:14:04 MST 2023

changeset:	14530:44bb3267a55e in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/44bb3267a55e
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Thu Feb 02 13:31:16 2023 -0700

Log Message:
	suspend_sudo_pty: stop the process group even if sudo is not the leader.
	When sudo is not the process group leader, we still need to stop
	sudo's process group and not just the sudo process itself.  If we
	only send the signal to sudo itself, the shell will not notice if
	it is not in monitor mode.  This can happen when sudo is run from
	a shell script, for example.  In this case we need to signal the
	shell itself.  If the process group leader is no longer present,
	we must kill the command since there will be no one to resume us.


 src/exec_pty.c |  29 +++++++++++++++++++++--------
 1 files changed, 21 insertions(+), 8 deletions(-)

More information about the sudo-commits mailing list