[sudo-commits] sudo changeset 15175:e57f9145945b

Todd C. Miller Todd.Miller at sudo.ws
Thu Nov 23 07:20:18 MST 2023


changeset:	15175:e57f9145945b in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/e57f9145945b
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Thu Nov 23 09:08:04 2023 -0500
files:		plugins/sudoers/logging.c plugins/sudoers/policy.c plugins/sudoers/sudoers.h

Log Message:
	Replace submit_time in struct sudoers_context with start_time.

	We need to track the (monotonic) command start time to be able to
	generate an accurate run time.  Instead of setting submit time when
	the policy initializes (and using that time for logging purposes),
	set evlog->submit_time to the current wallclock time when we need
	to perform logging.  This is more consistent with how sudo logging
	was performed in the past.  Fixes GitHub issues #327.


diffstat:

 plugins/sudoers/logging.c |  14 ++++++++------
 plugins/sudoers/policy.c  |  13 ++++++++-----
 plugins/sudoers/sudoers.h |   3 +--
 3 files changed, 17 insertions(+), 13 deletions(-)



More information about the sudo-commits mailing list