]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_compat: relax chain type validation
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 10 Nov 2014 19:53:55 +0000 (20:53 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 12 Nov 2014 11:06:24 +0000 (12:06 +0100)
commit8957ae8101cd7b349963578eb6a5e885da095725
treebdfa4bde1a777c9a71eb45dbeb5de9344e39149a
parent31d6251fb3048903080d5162396730d440387b5a
netfilter: nft_compat: relax chain type validation

Check for nat chain dependency only, which is the one that can
actually crash the kernel. Don't care if mangle, filter and security
specific match and targets are used out of their scope, they are
harmless.

This restores iptables-compat with mangle specific match/target when
used out of the OUTPUT chain, that are actually emulated through filter
chains, which broke when performing strict validation.

Fixes: 84afd01 ("netfilter: nft_compat: validate chain type in match/target")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_compat.c