diff options
author | Hong zhi guo <honkiko@gmail.com> | 2013-03-27 02:49:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-28 14:25:49 -0400 |
commit | 77954983ad76e4f10cee8d2e06fcd085fae11780 (patch) | |
tree | 71bdf43c7d6954818718606c4b6ed09ff4cdf91a /security/selinux/hooks.c | |
parent | 941912133025926307c7a65b203fa38403b1063a (diff) |
selinux: replace obsolete NLMSG_* with type safe nlmsg_*
Signed-off-by: Hong Zhiguo <honkiko@gmail.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 | } |