diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-16 16:12:53 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-29 10:22:18 +0200 |
commit | d44d12638229b1fea88dbecc28eee7c7a8188eb8 (patch) | |
tree | 6a9a0f09be336dd18c6a67b8c2a66e80512c040e | |
parent | 32a08be658b2b801260b84323ac8bd9cbecae811 (diff) | |
download | linux-exynos-d44d12638229b1fea88dbecc28eee7c7a8188eb8.tar.gz linux-exynos-d44d12638229b1fea88dbecc28eee7c7a8188eb8.tar.bz2 linux-exynos-d44d12638229b1fea88dbecc28eee7c7a8188eb8.zip |
Revert "net: Reset secmark when scrubbing packet"
[ Upstream commit 4c0ee414e877b899f7fc80aafb98d9425c02797f ]
This patch reverts commit b8fb4e0648a2ab3734140342002f68fb0c7d1602
because the secmark must be preserved even when a packet crosses
namespace boundaries. The reason is that security labels apply to
the system as a whole and is not per-namespace.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | net/core/skbuff.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 8e4ac97c8477..e8d2e6548eb7 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -4178,7 +4178,6 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet) skb_dst_drop(skb); skb->mark = 0; skb_sender_cpu_clear(skb); - skb_init_secmark(skb); secpath_reset(skb); nf_reset(skb); nf_reset_trace(skb); |