projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50656d9
)
netfilter: nft_compat: use current net namespace
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 7 Nov 2014 17:48:33 +0000
(18:48 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 12 Nov 2014 11:06:24 +0000
(12:06 +0100)
Instead of init_net when using xtables over nftables compat.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_compat.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/nft_compat.c
b/net/netfilter/nft_compat.c
index 9d6d6f60a80fc6b23da9bb140c90e085a4fa675a..b92f129beaded06511cd95b8ca078065389fe49c 100644
(file)
--- a/
net/netfilter/nft_compat.c
+++ b/
net/netfilter/nft_compat.c
@@
-117,7
+117,7
@@
nft_target_set_tgchk_param(struct xt_tgchk_param *par,
struct xt_target *target, void *info,
union nft_entry *entry, u8 proto, bool inv)
{
- par->net =
&init_
net;
+ par->net =
ctx->
net;
par->table = ctx->table->name;
switch (ctx->afi->family) {
case AF_INET:
@@
-324,7
+324,7
@@
nft_match_set_mtchk_param(struct xt_mtchk_param *par, const struct nft_ctx *ctx,
struct xt_match *match, void *info,
union nft_entry *entry, u8 proto, bool inv)
{
- par->net =
&init_
net;
+ par->net =
ctx->
net;
par->table = ctx->table->name;
switch (ctx->afi->family) {
case AF_INET: