diff options
| author | Alexey Dobriyan <adobriyan@gmail.com> | 2011-11-21 03:39:03 +0000 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-11-22 16:43:32 -0500 | 
| commit | 4e3fd7a06dc20b2d8ec6892233ad2012968fe7b6 (patch) | |
| tree | da3fbec7672ac6b967dfa31cec6c88f468a57fa2 /security/selinux/hooks.c | |
| parent | 40ba84993d66469d336099c5af74c3da5b73e28d (diff) | |
| download | olio-linux-3.10-4e3fd7a06dc20b2d8ec6892233ad2012968fe7b6.tar.xz olio-linux-3.10-4e3fd7a06dc20b2d8ec6892233ad2012968fe7b6.zip  | |
net: remove ipv6_addr_copy()
C assignment can handle struct in6_addr copying.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 1126c10a5e8..7e6c2564e74 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,  	if (ip6 == NULL)  		goto out; -	ipv6_addr_copy(&ad->u.net.v6info.saddr, &ip6->saddr); -	ipv6_addr_copy(&ad->u.net.v6info.daddr, &ip6->daddr); +	ad->u.net.v6info.saddr = ip6->saddr; +	ad->u.net.v6info.daddr = ip6->daddr;  	ret = 0;  	nexthdr = ip6->nexthdr; @@ -3871,7 +3871,7 @@ static int selinux_socket_bind(struct socket *sock, struct sockaddr *address, in  		if (family == PF_INET)  			ad.u.net.v4info.saddr = addr4->sin_addr.s_addr;  		else -			ipv6_addr_copy(&ad.u.net.v6info.saddr, &addr6->sin6_addr); +			ad.u.net.v6info.saddr = addr6->sin6_addr;  		err = avc_has_perm(sksec->sid, sid,  				   sksec->sclass, node_perm, &ad);  |