I/O log plugins should be closed *before* the policy plugin, not after.
This commit is contained in:
@@ -967,8 +967,8 @@ run_command(struct command_details *details)
|
|||||||
switch (cstat.type) {
|
switch (cstat.type) {
|
||||||
case CMD_ERRNO:
|
case CMD_ERRNO:
|
||||||
/* exec_setup() or execve() returned an error. */
|
/* exec_setup() or execve() returned an error. */
|
||||||
policy_close(0, cstat.val);
|
|
||||||
iolog_close(0, cstat.val);
|
iolog_close(0, cstat.val);
|
||||||
|
policy_close(0, cstat.val);
|
||||||
audit_close(SUDO_PLUGIN_EXEC_ERROR, cstat.val);
|
audit_close(SUDO_PLUGIN_EXEC_ERROR, cstat.val);
|
||||||
break;
|
break;
|
||||||
case CMD_WSTATUS:
|
case CMD_WSTATUS:
|
||||||
@@ -978,8 +978,8 @@ run_command(struct command_details *details)
|
|||||||
if (ISSET(details->flags, CD_SUDOEDIT_COPY))
|
if (ISSET(details->flags, CD_SUDOEDIT_COPY))
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
policy_close(status, 0);
|
|
||||||
iolog_close(status, 0);
|
iolog_close(status, 0);
|
||||||
|
policy_close(status, 0);
|
||||||
audit_close(SUDO_PLUGIN_WAIT_STATUS, cstat.val);
|
audit_close(SUDO_PLUGIN_WAIT_STATUS, cstat.val);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user