selinux: look for IPsec labels on both inbound and outbound packets
authorPaul Moore <pmoore@redhat.com>
Mon, 9 Dec 2013 20:32:33 +0000 (15:32 -0500)
committerPaul Moore <pmoore@redhat.com>
Mon, 9 Dec 2013 20:32:33 +0000 (15:32 -0500)
commit5b67c493248059909d7e0ff646d8475306669b27
treec1fb0f7caba61189811b12fc7e89c72d34610afb
parent0b1f24e6db9a60c1f68117ad158ea29faa7c3a7f
selinux: look for IPsec labels on both inbound and outbound packets

Previously selinux_skb_peerlbl_sid() would only check for labeled
IPsec security labels on inbound packets, this patch enables it to
check both inbound and outbound traffic for labeled IPsec security
labels.

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
security/selinux/include/xfrm.h
security/selinux/xfrm.c