diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 1126c10a5e82..7e6c2564e741 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -3567,8 +3567,8 @@ static int selinux_parse_skb_ipv6(struct sk_buff *skb, | |||
3567 | if (ip6 == NULL) | 3567 | if (ip6 == NULL) |
3568 | goto out; | 3568 | goto out; |
3569 | 3569 | ||
3570 | ipv6_addr_copy(&ad->u.net.v6info.saddr, &ip6->saddr); | 3570 | ad->u.net.v6info.saddr = ip6->saddr; |
3571 | ipv6_addr_copy(&ad->u.net.v6info.daddr, &ip6->daddr); | 3571 | ad->u.net.v6info.daddr = ip6->daddr; |
3572 | ret = 0; | 3572 | ret = 0; |
3573 | 3573 | ||
3574 | nexthdr = ip6->nexthdr; | 3574 | nexthdr = ip6->nexthdr; |
@@ -3871,7 +3871,7 @@ static int selinux_socket_bind(struct socket *sock, struct sockaddr *address, in | |||
3871 | if (family == PF_INET) | 3871 | if (family == PF_INET) |
3872 | ad.u.net.v4info.saddr = addr4->sin_addr.s_addr; | 3872 | ad.u.net.v4info.saddr = addr4->sin_addr.s_addr; |
3873 | else | 3873 | else |
3874 | ipv6_addr_copy(&ad.u.net.v6info.saddr, &addr6->sin6_addr); | 3874 | ad.u.net.v6info.saddr = addr6->sin6_addr; |
3875 | 3875 | ||
3876 | err = avc_has_perm(sksec->sid, sid, | 3876 | err = avc_has_perm(sksec->sid, sid, |
3877 | sksec->sclass, node_perm, &ad); | 3877 | sksec->sclass, node_perm, &ad); |