Skip to content
Commit 1c86b7ea authored by Florian Westphal's avatar Florian Westphal Committed by Greg Kroah-Hartman
Browse files

netfilter: nft_socket: make cgroup match work in input too

[ Upstream commit 05ae2fba ]

cgroupv2 helper function ignores the already-looked up sk
and uses skb->sk instead.

Just pass sk from the calling function instead; this will
make cgroup matching work for udp and tcp in input even when
edemux did not set skb->sk already.

Fixes: e0bb96db

 ("netfilter: nft_socket: add support for cgroupsv2")
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Tested-by: default avatarTopi Miettinen <toiwoton@gmail.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5a52384a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment