Commit 4a0e7f2d authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nf_tables: do not compare internal table flags on updates

Restore skipping transaction if table update does not modify flags.

Fixes: 179d9ba5 ("netfilter: nf_tables: fix table flag updates")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent b0e256f3
...@@ -1213,7 +1213,7 @@ static int nf_tables_updtable(struct nft_ctx *ctx) ...@@ -1213,7 +1213,7 @@ static int nf_tables_updtable(struct nft_ctx *ctx)
if (flags & ~NFT_TABLE_F_MASK) if (flags & ~NFT_TABLE_F_MASK)
return -EOPNOTSUPP; return -EOPNOTSUPP;
if (flags == ctx->table->flags) if (flags == (ctx->table->flags & NFT_TABLE_F_MASK))
return 0; return 0;
if ((nft_table_has_owner(ctx->table) && if ((nft_table_has_owner(ctx->table) &&
......
Markdown is supported
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