[sudo-commits] sudo changeset 14698:59e0b245c776

Todd C. Miller Todd.Miller at sudo.ws
Wed Apr 5 15:28:49 MDT 2023


changeset:	14698:59e0b245c776 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/59e0b245c776
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Wed Apr 05 13:35:09 2023 -0600

Log Message:
	Split up the monolithic sudoers_policy_main() function.

	This splits the code to find the command, perform a sudoers lookup,
	ask for a password as needed, and perform post-lokup checks out
	into sudoers_check_common().  The old sudoers_policy_main() has
	been replaced by sudoers_check_cmnd() (called by sudoers_policy_check()),
	sudoers_validate_user() (called by sudoers_policy_validate()) and
	sudoers_list() (called by sudoers_policy_list()).  The list_user
	lookup is now performed in sudoers_list().

diffstat:

 plugins/sudoers/policy.c  |   27 +--
 plugins/sudoers/sudoers.c |  351 +++++++++++++++++++++++++++++++--------------
 plugins/sudoers/sudoers.h |    4 +-
 3 files changed, 247 insertions(+), 135 deletions(-)



More information about the sudo-commits mailing list