Home
last modified time | relevance | path

Searched refs:CAP_NET_RAW (Results 1 – 15 of 15) sorted by relevance

/linux-4.1.27/include/uapi/linux/
Dcapability.h194 #define CAP_NET_RAW 13 macro
/linux-4.1.27/net/ipv4/
Dip_options.c411 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in ip_options_compile()
447 if ((!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) || opt->cipso) { in ip_options_compile()
460 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in ip_options_compile()
Daf_inet.c314 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
Dip_sockglue.c1133 if (!!val && !ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
/linux-4.1.27/net/bluetooth/
Dhci_sock.c792 if (!capable(CAP_NET_RAW)) { in hci_sock_bind()
1167 !capable(CAP_NET_RAW)) { in hci_sock_sendmsg()
1185 if (!capable(CAP_NET_RAW)) { in hci_sock_sendmsg()
1262 if (!capable(CAP_NET_RAW)) { in hci_sock_setsockopt()
Dl2cap_sock.c1572 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
/linux-4.1.27/net/ipv6/
Ddatagram.c790 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
810 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
835 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
Dipv6_sockglue.c369 !ns_capable(net->user_ns, CAP_NET_RAW)) { in do_ipv6_setsockopt()
407 if (optname != IPV6_RTHDR && !ns_capable(net->user_ns, CAP_NET_RAW)) in do_ipv6_setsockopt()
Daf_inet6.c162 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
/linux-4.1.27/net/ieee802154/
Dsocket.c903 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt()
927 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt()
/linux-4.1.27/net/llc/
Daf_llc.c163 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
/linux-4.1.27/drivers/infiniband/core/
Duverbs_cmd.c1646 if (cmd.qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in ib_uverbs_create_qp()
2817 !capable(CAP_NET_ADMIN)) || !capable(CAP_NET_RAW)) in ib_uverbs_ex_create_flow()
/linux-4.1.27/net/core/
Dsock.c556 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in sock_setbindtodevice()
Dskbuff.c3686 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); in skb_may_tx_timestamp()
/linux-4.1.27/net/packet/
Daf_packet.c2834 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in packet_create()