mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-05-20 14:35:06 +02:00
d0009effa8
Several expressions explicitly refer to NF_INET_* hook definitions from expr->ops->validate, however, family is not validated. Bail out with EOPNOTSUPP in case they are used from unsupported families. Fixes:0ca743a559("netfilter: nf_tables: add compatibility layer for x_tables") Fixes:a3c90f7a23("netfilter: nf_tables: flow offload expression") Fixes:2fa841938c("netfilter: nf_tables: introduce routing expression") Fixes:554ced0a6e("netfilter: nf_tables: add support for native socket matching") Fixes:ad49d86e07("netfilter: nf_tables: Add synproxy support") Fixes:4ed8eb6570("netfilter: nf_tables: Add native tproxy support") Fixes:6c47260250("netfilter: nf_tables: add xfrm expression") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>