diff options
author | Paul Moore <pmoore@redhat.com> | 2013-12-10 14:57:54 -0500 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-12-12 17:21:31 -0500 |
commit | 817eff718dca4e54d5721211ddde0914428fbb7c (patch) | |
tree | af7ee8d6ca454532624c7148e9f96bd1a67c0cb3 /security/selinux/hooks.c | |
parent | 446b802437f285de68ffb8d6fac3c44c3cab5b04 (diff) |
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>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index cc076a9b0344..8b2812312ae4 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -3829,7 +3829,7 @@ static int selinux_skb_peerlbl_sid(struct sk_buff *skb, u16 family, u32 *sid) | |||
3829 | u32 nlbl_sid; | 3829 | u32 nlbl_sid; |
3830 | u32 nlbl_type; | 3830 | u32 nlbl_type; |
3831 | 3831 | ||
3832 | err = selinux_skb_xfrm_sid(skb, &xfrm_sid); | 3832 | err = selinux_xfrm_skb_sid(skb, &xfrm_sid); |
3833 | if (unlikely(err)) | 3833 | if (unlikely(err)) |
3834 | return -EACCES; | 3834 | return -EACCES; |
3835 | err = selinux_netlbl_skbuff_getsid(skb, family, &nlbl_type, &nlbl_sid); | 3835 | err = selinux_netlbl_skbuff_getsid(skb, family, &nlbl_type, &nlbl_sid); |