Skip to content

Commit

Permalink
audit: don't reset working wait time accidentally with auditd
Browse files Browse the repository at this point in the history
During a queue overflow condition while we are waiting for auditd to drain the
queue to make room for regular messages, we don't want a successful auditd that
has bypassed the queue check to reset the backlog wait time.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
  • Loading branch information
Richard Guy Briggs authored and Paul Moore committed Feb 23, 2015
1 parent a77ed4e commit efef73a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,8 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask,
return NULL;
}

audit_backlog_wait_time = audit_backlog_wait_time_master;
if (!reserve)
audit_backlog_wait_time = audit_backlog_wait_time_master;

ab = audit_buffer_alloc(ctx, gfp_mask, type);
if (!ab) {
Expand Down

0 comments on commit efef73a

Please sign in to comment.