mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
AUDIT: Properly account for alignment difference in nlmsg_len.
Signed-off-by: Chris Wright <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
eecb0a7338
commit
5a241d7703
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue