selinux: process labeled IPsec TCP SYN-ACK packets properly in selinux_ip_postroute()
Paul Moore authored
commit c0828e50

 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: default avatarJanak Desai <Janak.Desai@gtri.gatech.edu>
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
6594af6a