netfilter: nftables: add helper function to validate set element data
stable inclusion from stable-v5.10.190 commit 7782ce022fea917ca3fe4fba826c5f4b4c4bc0ec category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7782ce022fea917ca3fe4fba826c5f4b4c4bc0ec -------------------------------- [ Upstream commit 97c976d6 ] When binding sets to rule, validate set element data according to set definition. This patch adds a helper function to be reused by the catch-all set element support. Signed-off-by:Pablo Neira Ayuso <pablo@netfilter.org> Stable-dep-of: 0a771f7b ("netfilter: nf_tables: skip immediate deactivate in _PREPARE_ERROR") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment