Pass command_info[] to audit plugin on I/O log plugin reject or error.

The audit plugin should cope with a NULL command_info but there's no
reason not to pass the info when we have it.
This commit is contained in:
Todd C. Miller
2020-11-17 13:15:15 -07:00
parent 27615b5582
commit 24d812d037
3 changed files with 26 additions and 17 deletions

View File

@@ -646,6 +646,7 @@ command_info_to_details(char * const info[], struct command_details *details)
debug_decl(command_info_to_details, SUDO_DEBUG_PCOMM);
memset(details, 0, sizeof(*details));
details->info = info;
details->closefrom = -1;
details->execfd = -1;
details->flags = CD_SUDOEDIT_CHECKDIR | CD_SET_GROUPS;