[sudo-commits] sudo changeset 13908:cf1f0bea9931

Todd C. Miller Todd.Miller at sudo.ws
Fri Apr 29 13:29:21 MDT 2022

changeset:	13908:cf1f0bea9931 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/cf1f0bea9931
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Fri Apr 29 13:09:03 2022 -0600

Log Message:
	Suspend the child process and wait for SIGUSR when using ptrace.
	This fixes a race condition in ptrace-based intercept mode when
	running the command in a pty.  It was possible for the monitor to
	receive SIGCHLD when the command sent itself SIGSTOP before the
	main sudo process did.


 src/exec_common.c  |  35 ++++++-----------------------------
 src/exec_monitor.c |  27 ++++++++++++++++++++++++++-
 src/exec_nopty.c   |  29 ++++++++++++++++++++++++++++-
 src/exec_ptrace.c  |  31 ++++++++++++++++++-------------
 4 files changed, 78 insertions(+), 44 deletions(-)

More information about the sudo-commits mailing list