aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-15 17:06:58 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-15 17:06:58 -0400
commita52cefc80fc92981592c688d1c8067442afe4cec (patch)
treead119b5a4f5e4a257779c0ef324b5c9354c915f1 /security/selinux/hooks.c
parentfba956c46a72f9e7503fd464ffee43c632307e31 (diff)
parent4acad72ded8e3f0211bd2a762e23c28229c61a51 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (42 commits) [IPV6]: Consolidate the ip6_pol_route_(input|output) pair [TCP]: Make snd_cwnd_cnt 32-bit [TCP]: Update the /proc/net/tcp documentation [NETNS]: Don't panic on creating the namespace's loopback [NEIGH]: Ensure that pneigh_lookup is protected with RTNL [INET]: kmalloc+memset -> kzalloc in frag_alloc_queue [ISDN]: Fix compile with CONFIG_ISDN_X25 disabled. [IPV6]: Replace sk_buff ** with sk_buff * in input handlers [SELINUX]: Update for netfilter ->hook() arg changes. [INET]: Consolidate the xxx_put [INET]: Small cleanup for xxx_put after evictor consolidation [INET]: Consolidate the xxx_evictor [INET]: Consolidate the xxx_frag_destroy [INET]: Consolidate xxx_the secret_rebuild [INET]: Consolidate the xxx_frag_kill [INET]: Collect common frag sysctl variables together [INET]: Collect frag queues management objects together [INET]: Move common fields from frag_queues in one place. [TG3]: Fix performance regression on 5705. [ISDN]: Remove local copy of device name to make sure renames work. ...
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 3c3fff33d1ce..cf76150e623e 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3932,7 +3932,7 @@ out:
3932} 3932}
3933 3933
3934static unsigned int selinux_ip_postroute_last(unsigned int hooknum, 3934static unsigned int selinux_ip_postroute_last(unsigned int hooknum,
3935 struct sk_buff **pskb, 3935 struct sk_buff *skb,
3936 const struct net_device *in, 3936 const struct net_device *in,
3937 const struct net_device *out, 3937 const struct net_device *out,
3938 int (*okfn)(struct sk_buff *), 3938 int (*okfn)(struct sk_buff *),
@@ -3941,7 +3941,6 @@ static unsigned int selinux_ip_postroute_last(unsigned int hooknum,
3941 char *addrp; 3941 char *addrp;
3942 int len, err = 0; 3942 int len, err = 0;
3943 struct sock *sk; 3943 struct sock *sk;
3944 struct sk_buff *skb = *pskb;
3945 struct avc_audit_data ad; 3944 struct avc_audit_data ad;
3946 struct net_device *dev = (struct net_device *)out; 3945 struct net_device *dev = (struct net_device *)out;
3947 struct sk_security_struct *sksec; 3946 struct sk_security_struct *sksec;
@@ -3977,23 +3976,23 @@ out:
3977} 3976}
3978 3977
3979static unsigned int selinux_ipv4_postroute_last(unsigned int hooknum, 3978static unsigned int selinux_ipv4_postroute_last(unsigned int hooknum,
3980 struct sk_buff **pskb, 3979 struct sk_buff *skb,
3981 const struct net_device *in, 3980 const struct net_device *in,
3982 const struct net_device *out, 3981 const struct net_device *out,
3983 int (*okfn)(struct sk_buff *)) 3982 int (*okfn)(struct sk_buff *))
3984{ 3983{
3985 return selinux_ip_postroute_last(hooknum, pskb, in, out, okfn, PF_INET); 3984 return selinux_ip_postroute_last(hooknum, skb, in, out, okfn, PF_INET);
3986} 3985}
3987 3986
3988#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 3987#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
3989 3988
3990static unsigned int selinux_ipv6_postroute_last(unsigned int hooknum, 3989static unsigned int selinux_ipv6_postroute_last(unsigned int hooknum,
3991 struct sk_buff **pskb, 3990 struct sk_buff *skb,
3992 const struct net_device *in, 3991 const struct net_device *in,
3993 const struct net_device *out, 3992 const struct net_device *out,
3994 int (*okfn)(struct sk_buff *)) 3993 int (*okfn)(struct sk_buff *))
3995{ 3994{
3996 return selinux_ip_postroute_last(hooknum, pskb, in, out, okfn, PF_INET6); 3995 return selinux_ip_postroute_last(hooknum, skb, in, out, okfn, PF_INET6);
3997} 3996}
3998 3997
3999#endif /* IPV6 */ 3998#endif /* IPV6 */