[sudo-commits] sudo changeset 14657:c0f339a84be8
Todd C. Miller
Todd.Miller at sudo.ws
Tue Mar 21 09:39:29 MDT 2023
changeset: 14657:c0f339a84be8 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/c0f339a84be8
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Tue Mar 21 09:22:53 2023 -0600
Log Message:
visudo: restore controlling terminal after running the editor.
Otherwise, visudo will get SIGTTOU if it tries to write to the
terminal after the editor finishes. Also avoid races by setting
the process group ID in both the parent and child, and grant the
controlling terminal in the parent, not the child.
diffstat:
plugins/sudoers/visudo.c | 105 ++++++++++++++++++++++++++++++++++++++--------
1 files changed, 85 insertions(+), 20 deletions(-)
More information about the sudo-commits
mailing list