Skip to content

Commit

Permalink
netfilter: nft_ct: reject direction for ct id
Browse files Browse the repository at this point in the history
[ Upstream commit 38ed1c7 ]

Direction attribute is ignored, reject it in case this ever needs to be
supported

Fixes: 3087c3f ("netfilter: nft_ct: Add ct id support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
ummakynes authored and gregkh committed Feb 16, 2024
1 parent b4b2571 commit fc46e23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/netfilter/nft_ct.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ static int nft_ct_get_init(const struct nft_ctx *ctx,
break;
#endif
case NFT_CT_ID:
if (tb[NFTA_CT_DIRECTION])
return -EINVAL;

len = sizeof(u32);
break;
default:
Expand Down

0 comments on commit fc46e23

Please sign in to comment.