From: Pablo Neira Ayuso Date: Tue, 14 Oct 2014 08:13:48 +0000 (+0200) Subject: netfilter: nft_compat: validate chain type in match/target X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~58^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3f5ddeddd6aeadcef523d55ea9288e3d5c1cbc3;p=pandora-kernel.git netfilter: nft_compat: validate chain type in match/target 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 --- Reading git-diff-tree failed