aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2024-03-14 18:51:38 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2024-03-21 00:21:55 +0100
commit4a0e7f2decbf9bd72461226f1f5f7dcc4b08f139 (patch)
tree810b8bce5f583e397b36a0cc1040c6361c6f586d
parentb0e256f3dd2ba6532f37c5c22e07cb07a36031ee (diff)
downloadlinux-4a0e7f2decbf9bd72461226f1f5f7dcc4b08f139.tar.gz
netfilter: nf_tables: do not compare internal table flags on updates
Restore skipping transaction if table update does not modify flags. Fixes: 179d9ba5559a ("netfilter: nf_tables: fix table flag updates") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--net/netfilter/nf_tables_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index e93f905e60b62e..984c1c83ee38c7 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -1213,7 +1213,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) &&