linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selinux: endian fix
@ 2006-05-16 15:23 Alexey Dobriyan
  2006-05-16 15:54 ` James Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Alexey Dobriyan @ 2006-05-16 15:23 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Stephen Smalley, James Morris

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3231,7 +3231,7 @@ static int selinux_socket_sock_rcv_skb(s
 		goto out;
 
 	/* Handle mapped IPv4 packets arriving via IPv6 sockets */
-	if (family == PF_INET6 && skb->protocol == ntohs(ETH_P_IP))
+	if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
 		family = PF_INET;
 
  	read_lock_bh(&sk->sk_callback_lock);


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-05-17  0:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-16 15:23 [PATCH] selinux: endian fix Alexey Dobriyan
2006-05-16 15:54 ` James Morris
2006-05-16 16:24   ` Andreas Schwab
2006-05-16 16:30     ` James Morris
2006-05-16 16:34     ` Al Viro
2006-05-16 17:42     ` Jan Engelhardt
2006-05-16 17:50       ` Andreas Schwab
2006-05-17  0:55   ` Peter Chubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).