[AUDIT] do not panic on exclude messages in audit_log_pid_context()

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>

authored by

Eric Paris and committed by
Al Viro
6246ccab c0641f28

+1 -1
+1 -1
kernel/auditsc.c
··· 948 948 949 949 ab = audit_log_start(context, GFP_KERNEL, AUDIT_OBJ_PID); 950 950 if (!ab) 951 - return 1; 951 + return rc; 952 952 953 953 audit_log_format(ab, "opid=%d oauid=%d ouid=%d oses=%d", pid, auid, 954 954 uid, sessionid);