[sudo-commits] sudo changeset 15066:c7831c462fb9

Todd C. Miller Todd.Miller at sudo.ws
Mon Sep 18 13:48:13 MDT 2023


changeset:	15066:c7831c462fb9 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/c7831c462fb9
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Mon Sep 18 12:42:51 2023 -0600
files:		MANIFEST plugins/sudoers/Makefile.in plugins/sudoers/find_path.c plugins/sudoers/regress/fuzz/fuzz_policy.c plugins/sudoers/resolve_cmnd.c plugins/sudoers/sudoers.c plugins/sudoers/sudoers.h

Log Message:
	Add resolve_cmnd(), a wrapper around find_path().

	This is a convenience function that sets PERM_RUNAS and calls
	find_path().  If the command is not found it will retry with PERM_USER
	instead.


diffstat:

 MANIFEST                                   |   3 +-
 plugins/sudoers/Makefile.in                |  35 +++++++++++++++--
 plugins/sudoers/find_path.c                |  10 ++--
 plugins/sudoers/regress/fuzz/fuzz_policy.c |   8 ++++
 plugins/sudoers/resolve_cmnd.c             |  59 ++++++++++++++++++++++++++++++
 plugins/sudoers/sudoers.c                  |  19 +--------
 plugins/sudoers/sudoers.h                  |   4 ++
 7 files changed, 110 insertions(+), 28 deletions(-)



More information about the sudo-commits mailing list