From: Dmitry Mishin Date: Tue, 5 Dec 2006 21:43:50 +0000 (-0800) Subject: [NETFILTER]: Fix {ip,ip6,arp}_tables hook validation X-Git-Tag: v2.6.20-rc1~145^2^2~7^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74c9c0c17dea729d6089c0c82762babd02e65f84;p=pandora-kernel.git [NETFILTER]: Fix {ip,ip6,arp}_tables hook validation Commit 590bdf7fd2292b47c428111cb1360e312eff207e introduced a regression in match/target hook validation. mark_source_chains builds a bitmask for each rule representing the hooks it can be reached from, which is then used by the matches and targets to make sure they are only called from valid hooks. The patch moved the match/target specific validation before the mark_source_chains call, at which point the mask is always zero. This patch returns back to the old order and moves the standard checks to mark_source_chains. This allows to get rid of a special case for standard targets as a nice side-effect. Signed-off-by: Dmitry Mishin Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed