Skip to content

Commit efca6fa

Browse files
herbertxsashalevin
authored andcommitted
Revert "net: Reset secmark when scrubbing packet"
[ Upstream commit 4c0ee41 ] 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> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent 6ee16f4 commit efca6fa

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
@@ -4041,7 +4041,6 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet)
40414041
skb->ignore_df = 0;
40424042
skb_dst_drop(skb);
40434043
skb->mark = 0;
4044-
skb_init_secmark(skb);
40454044
secpath_reset(skb);
40464045
nf_reset(skb);
40474046
nf_reset_trace(skb);

0 commit comments

Comments
 (0)