From: Steffen Klassert Date: Wed, 23 Feb 2011 11:55:21 +0000 (+0100) Subject: selinux: Fix wrong checks for selinux_policycap_netpeer X-Git-Tag: v2.6.39-rc1~486^2^2~1^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9679a76187694138099e09d7f5091b73086e6d7;p=pandora-kernel.git selinux: Fix wrong checks for selinux_policycap_netpeer selinux_sock_rcv_skb_compat and selinux_ip_postroute_compat are just called if selinux_policycap_netpeer is not set. However in these functions we check if selinux_policycap_netpeer is set. This leads to some dead code and to the fact that selinux_xfrm_postroute_last is never executed. This patch removes the dead code and the checks for selinux_policycap_netpeer in the compatibility functions. Signed-off-by: Steffen Klassert Acked-by: Paul Moore Signed-off-by: Eric Paris --- Reading git-diff-tree failed