diff options
author | Eric Paris <eparis@redhat.com> | 2008-01-07 14:01:18 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-02-01 14:07:46 -0500 |
commit | 6246ccab99093a562044596dd868213caa0b2b4c (patch) | |
tree | b373e388bd35549a540ce8693cceeea3660d02e1 | |
parent | c0641f28dcbecb6dc34a4fd003a9947fcd080696 (diff) |
[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>
-rw-r--r-- | kernel/auditsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 6e5de767bad1..aaaca8a13bbe 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -948,7 +948,7 @@ static int audit_log_pid_context(struct audit_context *context, pid_t pid, | |||
948 | 948 | ||
949 | ab = audit_log_start(context, GFP_KERNEL, AUDIT_OBJ_PID); | 949 | ab = audit_log_start(context, GFP_KERNEL, AUDIT_OBJ_PID); |
950 | if (!ab) | 950 | if (!ab) |
951 | return 1; | 951 | return rc; |
952 | 952 | ||
953 | audit_log_format(ab, "opid=%d oauid=%d ouid=%d oses=%d", pid, auid, | 953 | audit_log_format(ab, "opid=%d oauid=%d ouid=%d oses=%d", pid, auid, |
954 | uid, sessionid); | 954 | uid, sessionid); |