1.9.15: sudo.log vs. auth.log start logging · Issue #327 · sudo-project/sudo (original) (raw)

Comments

@opty77

@opty77 opty77 changed the title1.9.15: sudo.log vs. auth.log start timestamp 1.9.15: sudo.log vs. auth.log start logging

Nov 9, 2023

millert added a commit that referenced this issue

Nov 23, 2023

@millert

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.