Unverified Commit d2d04cfe authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8271 netfilter: nf_tables: reject new basechain after table flag update

parents bcc22f76 6c1f9f1b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2242,6 +2242,9 @@ static int nf_tables_addchain(struct nft_ctx *ctx, u8 family, u8 genmask,
		struct nft_stats __percpu *stats = NULL;
		struct nft_chain_hook hook;

		if (table->flags & __NFT_TABLE_F_UPDATE)
			return -EINVAL;

		if (flags & NFT_CHAIN_BINDING)
			return -EOPNOTSUPP;