diff options
| author | H. Peter Anvin <hpa@linux.intel.com> | 2014-02-07 14:27:30 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-02-07 14:27:30 -0500 |
| commit | a3b072cd180c12e8fe0ece9487b9065808327640 (patch) | |
| tree | 62b982041be84748852d77cdf6ca5639ef40858f /security/selinux/hooks.c | |
| parent | 75a1ba5b2c529db60ca49626bcaf0bddf4548438 (diff) | |
| parent | 081cd62a010f97b5bc1d2b0cd123c5abc692b68a (diff) | |
Merge tag 'efi-urgent' into x86/urgent
* Avoid WARN_ON() when mapping BGRT on Baytrail (EFI 32-bit).
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'security/selinux/hooks.c')
| -rw-r--r-- | security/selinux/hooks.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 57b0b49f4e6e..4b34847208cc 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
| @@ -82,7 +82,6 @@ | |||
| 82 | #include <linux/syslog.h> | 82 | #include <linux/syslog.h> |
| 83 | #include <linux/user_namespace.h> | 83 | #include <linux/user_namespace.h> |
| 84 | #include <linux/export.h> | 84 | #include <linux/export.h> |
| 85 | #include <linux/security.h> | ||
| 86 | #include <linux/msg.h> | 85 | #include <linux/msg.h> |
| 87 | #include <linux/shm.h> | 86 | #include <linux/shm.h> |
| 88 | 87 | ||
| @@ -4490,14 +4489,10 @@ static int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb, | |||
| 4490 | { | 4489 | { |
| 4491 | struct sk_security_struct *sksec = sk->sk_security; | 4490 | struct sk_security_struct *sksec = sk->sk_security; |
| 4492 | int err; | 4491 | int err; |
| 4493 | u16 family = sk->sk_family; | 4492 | u16 family = req->rsk_ops->family; |
| 4494 | u32 connsid; | 4493 | u32 connsid; |
| 4495 | u32 peersid; | 4494 | u32 peersid; |
| 4496 | 4495 | ||
| 4497 | /* handle mapped IPv4 packets arriving via IPv6 sockets */ | ||
| 4498 | if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) | ||
| 4499 | family = PF_INET; | ||
| 4500 | |||
| 4501 | err = selinux_skb_peerlbl_sid(skb, family, &peersid); | 4496 | err = selinux_skb_peerlbl_sid(skb, family, &peersid); |
| 4502 | if (err) | 4497 | if (err) |
| 4503 | return err; | 4498 | return err; |
