selinux: process labeled IPsec TCP SYN-ACK packets properly in selinux_ip_postroute()
authorPaul Moore <pmoore@redhat.com>
Tue, 10 Dec 2013 19:58:01 +0000 (14:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:24:24 +0000 (12:24 -0800)
commit0fdb9385a5909c218fa2cf0cf62896ebe0fcf30e
tree7cfeda1086e30884e1a5ffe6c2a44084eac5c5aa
parent070357081f37bb70ff1a09630c50529188846280
selinux: process labeled IPsec TCP SYN-ACK packets properly in selinux_ip_postroute()

commit c0828e50485932b7e019df377a6b0a8d1ebd3080 upstream.

Due to difficulty in arriving at the proper security label for
TCP SYN-ACK packets in selinux_ip_postroute(), we need to check packets
while/before they are undergoing XFRM transforms instead of waiting
until afterwards so that we can determine the correct security label.

Reported-by: Janak Desai <Janak.Desai@gtri.gatech.edu>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/selinux/hooks.c