2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 22:35:10 +00:00

Add callbacks to sudoers_lookup() so we can use it in testsudoers.

Also pass in the time to be used for NOTBEFORE/NOTAFTER checks.
This commit is contained in:
Todd C. Miller
2023-06-29 17:30:39 -06:00
parent 41b82006de
commit e025cca440
5 changed files with 73 additions and 48 deletions

View File

@@ -792,8 +792,8 @@ audit_failure(char *const argv[], char const *const fmt, ...)
/* STUB */
int
sudoers_lookup(struct sudo_nss_list *snl, struct passwd *pw, int *cmnd_status,
int pwflag)
sudoers_lookup(struct sudo_nss_list *snl, struct passwd *pw, time_t now,
struct sudoers_lookup_callbacks *callbacks, int *cmnd_status, int pwflag)
{
return VALIDATE_SUCCESS;
}