Skip to content

Commit

Permalink
[AUDIT] do not panic on exclude messages in audit_log_pid_context()
Browse files Browse the repository at this point in the history
If we fail to get an ab in audit_log_pid_context this may be due to an exclude
rule rather than a memory allocation failure.  If it was due to a memory
allocation failue we would have already paniced and no need to do it again.

Signed-off-by: Eric Paris <eparis@redhat.com>
  • Loading branch information
Eric Paris authored and Al Viro committed Feb 1, 2008
1 parent c0641f2 commit 6246cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ static int audit_log_pid_context(struct audit_context *context, pid_t pid,

ab = audit_log_start(context, GFP_KERNEL, AUDIT_OBJ_PID);
if (!ab)
return 1;
return rc;

audit_log_format(ab, "opid=%d oauid=%d ouid=%d oses=%d", pid, auid,
uid, sessionid);
Expand Down

0 comments on commit 6246cca

Please sign in to comment.