Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a241d77 authored by Chris Wright's avatar Chris Wright Committed by David Woodhouse
Browse files

AUDIT: Properly account for alignment difference in nlmsg_len.

parent eecb0a73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);