selinux: process labeled IPsec TCP SYN-ACK packets properly in selinux_ip_postroute()
authorPaul Moore <pmoore@redhat.com>
Mon, 9 Dec 2013 21:11:53 +0000 (16:11 -0500)
committerPaul Moore <pmoore@redhat.com>
Tue, 10 Dec 2013 19:50:25 +0000 (14:50 -0500)
commit5c6c26813a209e7075baf908e3ad81c1a9d389e8
tree6df3b20fae12cdba5e0deb254b9df2b933983506
parent5b67c493248059909d7e0ff646d8475306669b27
selinux: process labeled IPsec TCP SYN-ACK packets properly in selinux_ip_postroute()

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>
Cc: stable@vger.kernel.org
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/hooks.c