Use run_argv and run_envp passed into the audit plugin for event logging.

Previously we used NewArgv[] and env_get() but now that logging is
performed via an audit plugin we should use the values passed in.
This commit is contained in:
Todd C. Miller
2021-08-09 15:50:25 -06:00
parent 5e3ce532fe
commit 1ae9954c63
3 changed files with 4 additions and 4 deletions

View File

@@ -335,7 +335,7 @@ sudoers_audit_accept(const char *plugin_name, unsigned int plugin_type,
if (audit_success(run_argv) != 0 && !def_ignore_audit_errors)
ret = false;
if (!log_allowed() && !def_ignore_logfile_errors)
if (!log_allowed(run_argv, run_envp) && !def_ignore_logfile_errors)
ret = false;
if (!log_server_accept(command_info, run_argv, run_envp)) {