diff options
author | Chris Wright <chrisw@osdl.org> | 2005-05-11 10:43:07 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-11 10:43:07 +0100 |
commit | 5a241d77039a2632e81070619d5733258728f8bd (patch) | |
tree | c0f1b643144e5f53d619f22df6afb031ed0aef45 /kernel/audit.c | |
parent | eecb0a7338ef6504aa49def4dde6429853025801 (diff) | |
download | op-kernel-dev-5a241d77039a2632e81070619d5733258728f8bd.zip op-kernel-dev-5a241d77039a2632e81070619d5733258728f8bd.tar.gz |
AUDIT: Properly account for alignment difference in nlmsg_len.
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index ddb69a4..a5f03cb 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -488,7 +488,7 @@ static inline int audit_log_drain(struct audit_buffer *ab) if (audit_pid) { struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data; - nlh->nlmsg_len = skb->len - sizeof(*nlh); + nlh->nlmsg_len = skb->len - NLMSG_SPACE(0); skb_get(skb); /* because netlink_* frees */ retval = netlink_unicast(audit_sock, skb, audit_pid, MSG_DONTWAIT); |