netfilter: nft_compat: validate chain type in match/target
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 14 Oct 2014 08:13:48 +0000 (10:13 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 18 Oct 2014 12:14:07 +0000 (14:14 +0200)
We have to validate the real chain type to ensure that matches/targets
are not used out from their scope (eg. MASQUERADE in nat chain type).
The existing validation relies on the table name, but this is not
sufficient since userspace can fool us by using the appropriate table
name with a different chain type.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

No differences found