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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user