[sudo-commits] sudo changeset 14959:547d0256f22a

Todd C. Miller Todd.Miller at sudo.ws
Tue Aug 8 11:11:19 MDT 2023


changeset:	14959:547d0256f22a in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/547d0256f22a
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Mon Aug 07 15:06:19 2023 -0600

Log Message:
	Use a single callback for sudoers_lookup() and add a closure pointer.

	The single callback now receives all the match info (or UNSPEC if
	no match was attempted).  This makes it possible to use the callback
	for more than just printing testsudoers output.

diffstat:

 plugins/sudoers/lookup.c                    |  71 +++++++++++++++++-----------
 plugins/sudoers/parse.h                     |  10 +--
 plugins/sudoers/regress/fuzz/fuzz_policy.c  |   3 +-
 plugins/sudoers/regress/fuzz/fuzz_sudoers.c |   6 +-
 plugins/sudoers/sudoers.c                   |   4 +-
 plugins/sudoers/testsudoers.c               |  69 ++++++++++++++-------------
 6 files changed, 90 insertions(+), 73 deletions(-)



More information about the sudo-commits mailing list