Skip to content

Commit 4c0ee41

Browse files
herbertxdavem330
authored andcommitted
Revert "net: Reset secmark when scrubbing packet"
This patch reverts commit b8fb4e0 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>
1 parent 725f9dc commit 4c0ee41

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎net/core/skbuff.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4133,7 +4133,6 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet)
41334133
skb_dst_drop(skb);
41344134
skb->mark = 0;
41354135
skb_sender_cpu_clear(skb);
4136-
skb_init_secmark(skb);
41374136
secpath_reset(skb);
41384137
nf_reset(skb);
41394138
nf_reset_trace(skb);

0 commit comments

Comments
 (0)