Searched refs:CAP_NET_RAW (Results 1 – 16 of 16) sorted by relevance
/linux-4.4.14/tools/testing/selftests/capabilities/ |
D | test_execve.c | 282 capng_update(CAPNG_ADD, CAPNG_INHERITABLE, CAP_NET_RAW); in do_tests() 283 capng_update(CAPNG_DROP, CAPNG_PERMITTED, CAP_NET_RAW); in do_tests() 284 capng_update(CAPNG_DROP, CAPNG_EFFECTIVE, CAP_NET_RAW); in do_tests() 287 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_RAW, 0, 0, 0) != -1 || errno != EPERM) { in do_tests()
|
/linux-4.4.14/include/uapi/linux/ |
D | capability.h | 194 #define CAP_NET_RAW 13 macro
|
/linux-4.4.14/net/ipv4/ |
D | ip_options.c | 411 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()
|
D | ip_sockglue.c | 1137 if (!!val && !ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
|
D | af_inet.c | 312 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
|
/linux-4.4.14/net/bluetooth/ |
D | hci_sock.c | 865 if (!capable(CAP_NET_RAW)) { in hci_sock_bind() 1240 !capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1258 if (!capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1341 if (!capable(CAP_NET_RAW)) { in hci_sock_setsockopt()
|
D | l2cap_sock.c | 1620 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
|
/linux-4.4.14/net/ipv6/ |
D | datagram.c | 790 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()
|
D | ipv6_sockglue.c | 369 !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()
|
D | af_inet6.c | 162 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
|
/linux-4.4.14/net/ieee802154/ |
D | socket.c | 895 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt() 919 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt()
|
/linux-4.4.14/net/llc/ |
D | af_llc.c | 163 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
|
/linux-4.4.14/drivers/infiniband/core/ |
D | uverbs_cmd.c | 1769 if (cmd->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in create_qp() 3103 !capable(CAP_NET_ADMIN)) || !capable(CAP_NET_RAW)) in ib_uverbs_ex_create_flow()
|
/linux-4.4.14/net/core/ |
D | sock.c | 569 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in sock_setbindtodevice()
|
D | skbuff.c | 3686 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); in skb_may_tx_timestamp()
|
/linux-4.4.14/net/packet/ |
D | af_packet.c | 3054 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in packet_create()
|