diff options
author | Paul Moore <pmoore@redhat.com> | 2013-12-09 15:32:33 -0500 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-12-09 15:32:33 -0500 |
commit | 5b67c493248059909d7e0ff646d8475306669b27 (patch) | |
tree | c1fb0f7caba61189811b12fc7e89c72d34610afb /security/selinux/hooks.c | |
parent | 0b1f24e6db9a60c1f68117ad158ea29faa7c3a7f (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 17d7689660ea..95cb1345257d 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); |