af_inet6.c (c6b641a4c6b32f39db678c2441cb1ef824110d74) | af_inet6.c (af31f412c7c7a3c0fda4bf4beaf0c85af1f263c8) |
---|---|
1/* 2 * PF_INET6 socket protocol family 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * Adapted from linux/net/ipv4/af_inet.c --- 146 unchanged lines hidden (view full) --- 155 request_module("net-pf-%d-proto-%d", 156 PF_INET6, protocol); 157 goto lookup_protocol; 158 } else 159 goto out_rcu_unlock; 160 } 161 162 err = -EPERM; | 1/* 2 * PF_INET6 socket protocol family 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * Adapted from linux/net/ipv4/af_inet.c --- 146 unchanged lines hidden (view full) --- 155 request_module("net-pf-%d-proto-%d", 156 PF_INET6, protocol); 157 goto lookup_protocol; 158 } else 159 goto out_rcu_unlock; 160 } 161 162 err = -EPERM; |
163 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) | 163 if (sock->type == SOCK_RAW && !kern && 164 !ns_capable(net->user_ns, CAP_NET_RAW)) |
164 goto out_rcu_unlock; 165 166 sock->ops = answer->ops; 167 answer_prot = answer->prot; 168 answer_no_check = answer->no_check; 169 answer_flags = answer->flags; 170 rcu_read_unlock(); 171 --- 876 unchanged lines hidden --- | 165 goto out_rcu_unlock; 166 167 sock->ops = answer->ops; 168 answer_prot = answer->prot; 169 answer_no_check = answer->no_check; 170 answer_flags = answer->flags; 171 rcu_read_unlock(); 172 --- 876 unchanged lines hidden --- |