]> 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)
commit5d30861eb9135eaa0e8749a86e52af7a546ef64e
treebdfa4bde1a777c9a71eb45dbeb5de9344e39149a
parent68e19e682b79f48e4d0b82e420defcf92a3f116e
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: 5a78a0d ("netfilter: nft_compat: validate chain type in match/target")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_compat.c