diff options
| author | Alexey Dobriyan <[email protected]> | 2006-05-20 22:00:02 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-05-21 19:59:17 +0000 |
| commit | d4e9dc63dca91cd89086b5a686d7f7635c8319e5 (patch) | |
| tree | c6ec1b8801d8e526e0d7373b7cd91e46f20a4299 /security/selinux/hooks.c | |
| parent | [PATCH] binfmt_flat: don't check for EMFILE (diff) | |
| download | kernel-d4e9dc63dca91cd89086b5a686d7f7635c8319e5.tar.gz kernel-d4e9dc63dca91cd89086b5a686d7f7635c8319e5.zip | |
[PATCH] selinux: endian fix
Signed-off-by: Alexey Dobriyan <[email protected]>
Cc: Stephen Smalley <[email protected]>
Acked-by: James Morris <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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 d987048d3f33..21dad415b896 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -3231,7 +3231,7 @@ static int selinux_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) 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); |
