aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorSteve Grubb <sgrubb@redhat.com>2005-05-20 19:22:31 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-20 19:22:31 -0400
commit326e9c8ba6a149f47e020719b23b24a14ba740d6 (patch)
tree279ace274d6a5e7c696c95f397bfbf5d5d5c347a /kernel/audit.c
parent05474106a41f44d16d649bc8c7687fc24ce4370a (diff)
AUDIT: Fix inconsistent use of loginuid vs. auid, signed vs. unsigned
The attached patch changes all occurrences of loginuid to auid. It also changes everything to %u that is an unsigned type. Signed-off-by: Steve Grubb <sgrubb@redhat.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 5e72895f4826..f0a003acf621 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -439,12 +439,9 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
439 if (!ab) 439 if (!ab)
440 break; /* audit_panic has been called */ 440 break; /* audit_panic has been called */
441 audit_log_format(ab, 441 audit_log_format(ab,
442 "user pid=%d uid=%d length=%d loginuid=%u" 442 "user pid=%d uid=%u auid=%u"
443 " msg='%.1024s'", 443 " msg='%.1024s'",
444 pid, uid, 444 pid, uid, loginuid, (char *)data);
445 (int)(nlh->nlmsg_len
446 - ((char *)data - (char *)nlh)),
447 loginuid, (char *)data);
448 audit_set_pid(ab, pid); 445 audit_set_pid(ab, pid);
449 audit_log_end(ab); 446 audit_log_end(ab);
450 break; 447 break;