Use libeventlog in sudoers instead of doing our own logging.

This commit is contained in:
Todd C. Miller
2020-10-26 16:10:40 -06:00
parent 541252beb1
commit 4416bd5977
12 changed files with 1117 additions and 1519 deletions

View File

@@ -110,6 +110,11 @@ sudoers_policy_deserialize_info(void *v, char **runas_user, char **runas_group)
} \
} while (0)
if (sudo_gettime_real(&sudo_user.submit_time) == -1) {
sudo_warn("%s", U_("unable to get time of day"));
goto bad;
}
/* Parse sudo.conf plugin args. */
if (info->plugin_args != NULL) {
for (cur = info->plugin_args; *cur != NULL; cur++) {