diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index feb2f42c5a07..5c6f2cd2d095 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -61,7 +61,7 @@ | |||
61 | #include <linux/bitops.h> | 61 | #include <linux/bitops.h> |
62 | #include <linux/interrupt.h> | 62 | #include <linux/interrupt.h> |
63 | #include <linux/netdevice.h> /* for network interface checks */ | 63 | #include <linux/netdevice.h> /* for network interface checks */ |
64 | #include <linux/netlink.h> | 64 | #include <net/netlink.h> |
65 | #include <linux/tcp.h> | 65 | #include <linux/tcp.h> |
66 | #include <linux/udp.h> | 66 | #include <linux/udp.h> |
67 | #include <linux/dccp.h> | 67 | #include <linux/dccp.h> |
@@ -4512,7 +4512,7 @@ static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb) | |||
4512 | struct nlmsghdr *nlh; | 4512 | struct nlmsghdr *nlh; |
4513 | struct sk_security_struct *sksec = sk->sk_security; | 4513 | struct sk_security_struct *sksec = sk->sk_security; |
4514 | 4514 | ||
4515 | if (skb->len < NLMSG_SPACE(0)) { | 4515 | if (skb->len < NLMSG_HDRLEN) { |
4516 | err = -EINVAL; | 4516 | err = -EINVAL; |
4517 | goto out; | 4517 | goto out; |
4518 | } | 4518 | } |