netfilter: nf_tables: do not compare internal table flags on updates
[ Upstream commit4a0e7f2dec] Restore skipping transaction if table update does not modify flags. Fixes:179d9ba555("netfilter: nf_tables: fix table flag updates") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5ad233dc73
commit
9683cb6c2c
1 changed files with 1 additions and 1 deletions
|
|
@ -1205,7 +1205,7 @@ static int nf_tables_updtable(struct nft_ctx *ctx)
|
|||
if (flags & ~NFT_TABLE_F_MASK)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (flags == ctx->table->flags)
|
||||
if (flags == (ctx->table->flags & NFT_TABLE_F_MASK))
|
||||
return 0;
|
||||
|
||||
if ((nft_table_has_owner(ctx->table) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue