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 2fa28c88900c..0a0609fce28b 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -60,7 +60,7 @@ | |||
60 | #include <linux/bitops.h> | 60 | #include <linux/bitops.h> |
61 | #include <linux/interrupt.h> | 61 | #include <linux/interrupt.h> |
62 | #include <linux/netdevice.h> /* for network interface checks */ | 62 | #include <linux/netdevice.h> /* for network interface checks */ |
63 | #include <linux/netlink.h> | 63 | #include <net/netlink.h> |
64 | #include <linux/tcp.h> | 64 | #include <linux/tcp.h> |
65 | #include <linux/udp.h> | 65 | #include <linux/udp.h> |
66 | #include <linux/dccp.h> | 66 | #include <linux/dccp.h> |
@@ -4475,7 +4475,7 @@ static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb) | |||
4475 | struct nlmsghdr *nlh; | 4475 | struct nlmsghdr *nlh; |
4476 | struct sk_security_struct *sksec = sk->sk_security; | 4476 | struct sk_security_struct *sksec = sk->sk_security; |
4477 | 4477 | ||
4478 | if (skb->len < NLMSG_SPACE(0)) { | 4478 | if (skb->len < NLMSG_HDRLEN) { |
4479 | err = -EINVAL; | 4479 | err = -EINVAL; |
4480 | goto out; | 4480 | goto out; |
4481 | } | 4481 | } |