diff --git a/plugins/sudoers/audit.c b/plugins/sudoers/audit.c index 85d4c30a9..a469514ff 100644 --- a/plugins/sudoers/audit.c +++ b/plugins/sudoers/audit.c @@ -418,8 +418,7 @@ sudoers_audit_reject(const char *plugin_name, unsigned int plugin_type, ret = false; } - audit_to_eventlog(ctx, &evlog, command_info, ctx->runas.argv, env_get(), - NULL); + audit_to_eventlog(ctx, &evlog, command_info, ctx->runas.argv, NULL, NULL); if (!eventlog_reject(&evlog, 0, message, NULL, NULL)) ret = false; @@ -453,8 +452,7 @@ sudoers_audit_error(const char *plugin_name, unsigned int plugin_type, debug_return_bool(false); } - audit_to_eventlog(ctx, &evlog, command_info, ctx->runas.argv, env_get(), - NULL); + audit_to_eventlog(ctx, &evlog, command_info, ctx->runas.argv, NULL, NULL); if (!eventlog_alert(&evlog, 0, &now, message, NULL)) ret = false; diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c index 28cf6729f..ca92bbec4 100644 --- a/plugins/sudoers/logging.c +++ b/plugins/sudoers/logging.c @@ -267,7 +267,7 @@ log_reject(const struct sudoers_context *ctx, const char *message, SET(evl_flags, EVLOG_MAIL_ONLY); } sudoers_to_eventlog(ctx, &evlog, ctx->runas.cmnd, ctx->runas.argv, - env_get(), uuid_str); + NULL, uuid_str); ret = eventlog_reject(&evlog, evl_flags, message, NULL, NULL); if (!log_server_reject(ctx, &evlog, message)) ret = false; @@ -636,7 +636,7 @@ log_exit_status(const struct sudoers_context *ctx, int status) sudoers_setlocale(SUDOERS_LOCALE_SUDOERS, &oldlocale); sudoers_to_eventlog(ctx, &evlog, ctx->runas.cmnd_saved, - ctx->runas.argv_saved, env_get(), ctx->uuid_str); + ctx->runas.argv_saved, NULL, ctx->uuid_str); if (def_mail_always) { SET(evl_flags, EVLOG_MAIL); if (!def_log_exit_status) @@ -740,7 +740,7 @@ vlog_warning(const struct sudoers_context *ctx, unsigned int flags, SET(evl_flags, EVLOG_MAIL_ONLY); } sudoers_to_eventlog(ctx, &evlog, ctx->runas.cmnd, ctx->runas.argv, - env_get(), ctx->uuid_str); + NULL, ctx->uuid_str); if (!eventlog_alert(&evlog, evl_flags, &now, message, errstr)) ret = false; if (!log_server_alert(ctx, &evlog, &now, message, errstr)) @@ -860,7 +860,7 @@ mail_parse_errors(const struct sudoers_context *ctx) goto done; } sudoers_to_eventlog(ctx, &evlog, ctx->runas.cmnd, ctx->runas.argv, - env_get(), ctx->uuid_str); + NULL, ctx->uuid_str); /* Convert parse_error_list to a string vector. */ n = 0;