Lines Matching refs:user_ns
162 struct user_namespace *user_ns, int cap) in sk_ns_capable() argument
164 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable()
165 ns_capable(user_ns, cap); in sk_ns_capable()
195 return sk_ns_capable(sk, sock_net(sk)->user_ns, cap); in sk_net_capable()
596 if (sk->sk_bound_dev_if && !ns_capable(net->user_ns, CAP_NET_RAW)) in sock_bindtoindex_locked()
1083 ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) in sock_setsockopt()
1228 if (!ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) { in sock_setsockopt()
1351 !ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) { in sock_setsockopt()
1411 struct user_namespace *user_ns = current_user_ns(); in groups_to_user() local
1415 if (put_user(from_kgid_munged(user_ns, src->gid[i]), dst + i)) in groups_to_user()
2553 if (!ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) in __sock_cmsg_send()
3246 make_kuid(sock_net(sk)->user_ns, 0); in sock_init_data()