[sudo-commits] sudo changeset 14804:d32e07966e0e
Todd C. Miller
Todd.Miller at sudo.ws
Thu Jun 29 11:13:21 MDT 2023
changeset: 14804:d32e07966e0e in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/d32e07966e0e
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Wed Jun 28 09:59:33 2023 -0600
Log Message:
check_user_runcwd: allow -D option if it matches the cwd in sudoers
Previously, check_user_runcwd() would return true if the runcwd
matched the user's cwd, even if sudoers specified a different one.
The user-specified runcwd was ignored but it is better to error out
in this case. It is now also possible to use "sudo -D" with the
directory specified in sudoers.
diffstat:
plugins/sudoers/policy.c | 6 +-----
plugins/sudoers/sudoers.c | 38 ++++++++++++++++++++++++++------------
2 files changed, 27 insertions(+), 17 deletions(-)
More information about the sudo-commits
mailing list