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)
committerPaul Moore <pmoore@redhat.com>
Thu, 12 Dec 2013 22:21:31 +0000 (17:21 -0500)
commitc0828e50485932b7e019df377a6b0a8d1ebd3080
tree60d953c62261e7ec3b5b33e86e58a3d7286e1c4a
parent817eff718dca4e54d5721211ddde0914428fbb7c
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