[sudo-commits] sudo changeset 13897:bddcc0d9fee6
Todd C. Miller
Todd.Miller at sudo.ws
Wed Apr 20 15:53:09 MDT 2022
changeset: 13897:bddcc0d9fee6 in /raid/repos/sudo
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Wed Apr 20 11:56:26 2022 -0600
Don't require a pty for intercept or log_subcmmds.
The code to take back control of the tty before a policy check
doesn't appear to be needed. If the command is run in its own pty,
sudo has control over the user's tty. If the command is run in
the user's tty, sudo should be in the foreground process group.
src/exec.c | 2 +-
src/exec_intercept.c | 23 -----------------------
2 files changed, 1 insertions(+), 24 deletions(-)
More information about the sudo-commits