From: Steffen Klassert Date: Wed, 23 Feb 2011 11:56:23 +0000 (+0100) Subject: selinux: Fix packet forwarding checks on postrouting X-Git-Tag: v2.6.39-rc1~486^2^2~1^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a7ab3dcad0b66a486c468ccf0d6197c5dbe3326;p=pandora-kernel.git selinux: Fix packet forwarding checks on postrouting The IPSKB_FORWARDED and IP6SKB_FORWARDED flags are used only in the multicast forwarding case to indicate that a packet looped back after forward. So these flags are not a good indicator for packet forwarding. A better indicator is the incoming interface. If we have no socket context, but an incoming interface and we see the packet in the ip postroute hook, the packet is going to be forwarded. With this patch we use the incoming interface as an indicator on packet forwarding. Signed-off-by: Steffen Klassert Acked-by: Paul Moore Signed-off-by: Eric Paris --- Reading git-diff-tree failed