diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-03-21 15:48:41 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-03-25 09:21:23 -0400 |
commit | 130549fed828cc34c22624c6195afcf9e7ae56fe (patch) | |
tree | 4d2f1ff9247a0708100d2c8b4fe15f96cc757ca5 /include | |
parent | 7ebe183c6d444ef5587d803b64a1f4734b18c564 (diff) |
netfilter: reset nf_trace in nf_reset
We forgot to clear the nf_trace of sk_buff in nf_reset,
When we use veth device, this nf_trace information will
be leaked from one net namespace to another net namespace.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 441f5bfdab8e..72b396751de7 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -2641,6 +2641,9 @@ static inline void nf_reset(struct sk_buff *skb) | |||
2641 | nf_bridge_put(skb->nf_bridge); | 2641 | nf_bridge_put(skb->nf_bridge); |
2642 | skb->nf_bridge = NULL; | 2642 | skb->nf_bridge = NULL; |
2643 | #endif | 2643 | #endif |
2644 | #if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) | ||
2645 | skb->nf_trace = 0; | ||
2646 | #endif | ||
2644 | } | 2647 | } |
2645 | 2648 | ||
2646 | /* Note: This doesn't put any conntrack and bridge info in dst. */ | 2649 | /* Note: This doesn't put any conntrack and bridge info in dst. */ |