Skip to content

Commit 99a9270

Browse files
ummakynessmb49
authored andcommitted
netfilter: nft_ct: reject direction for ct id
BugLink: https://bugs.launchpad.net/bugs/2059991 [ 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 <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Portia Stephens <[email protected]> Signed-off-by: Roxana Nicolescu <[email protected]>
1 parent 5e83aaa commit 99a9270

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/netfilter/nft_ct.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ static int nft_ct_get_init(const struct nft_ctx *ctx,
474474
break;
475475
#endif
476476
case NFT_CT_ID:
477+
if (tb[NFTA_CT_DIRECTION])
478+
return -EINVAL;
479+
477480
len = sizeof(u32);
478481
break;
479482
default:

0 commit comments

Comments
 (0)