diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-09-18 15:33:06 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-18 16:00:16 -0400 |
commit | 06198b34a3e09e06d9aecaa3727e0d37206cea77 (patch) | |
tree | 4fd18327ad7aaaf991b422de0b7ab6ef0ac28acb /security/smack | |
parent | 176971b33859135d8dbda9b79e16cb1cf615eb92 (diff) |
netfilter: Pass priv instead of nf_hook_ops to netfilter hooks
Only pass the void *priv parameter out of the nf_hook_ops. That is
all any of the functions are interested now, and by limiting what is
passed it becomes simpler to change implementation details.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smack_netfilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/smack/smack_netfilter.c b/security/smack/smack_netfilter.c index a455cfc9ec1f..a9e41da05d28 100644 --- a/security/smack/smack_netfilter.c +++ b/security/smack/smack_netfilter.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | 22 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) |
23 | 23 | ||
24 | static unsigned int smack_ipv6_output(const struct nf_hook_ops *ops, | 24 | static unsigned int smack_ipv6_output(void *priv, |
25 | struct sk_buff *skb, | 25 | struct sk_buff *skb, |
26 | const struct nf_hook_state *state) | 26 | const struct nf_hook_state *state) |
27 | { | 27 | { |
@@ -38,7 +38,7 @@ static unsigned int smack_ipv6_output(const struct nf_hook_ops *ops, | |||
38 | } | 38 | } |
39 | #endif /* IPV6 */ | 39 | #endif /* IPV6 */ |
40 | 40 | ||
41 | static unsigned int smack_ipv4_output(const struct nf_hook_ops *ops, | 41 | static unsigned int smack_ipv4_output(void *priv, |
42 | struct sk_buff *skb, | 42 | struct sk_buff *skb, |
43 | const struct nf_hook_state *state) | 43 | const struct nf_hook_state *state) |
44 | { | 44 | { |