Home
last modified time | relevance | path

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

/Linux-v4.19/tools/testing/selftests/capabilities/
Dtest_execve.c297 capng_update(CAPNG_ADD, CAPNG_INHERITABLE, CAP_NET_RAW); in do_tests()
298 capng_update(CAPNG_DROP, CAPNG_PERMITTED, CAP_NET_RAW); in do_tests()
299 capng_update(CAPNG_DROP, CAPNG_EFFECTIVE, CAP_NET_RAW); in do_tests()
302 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_RAW, 0, 0, 0) != -1 || errno != EPERM) { in do_tests()
/Linux-v4.19/include/uapi/linux/
Dcapability.h209 #define CAP_NET_RAW 13 macro
/Linux-v4.19/net/ipv4/
Dip_options.c408 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in ip_options_compile()
443 if ((!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) || opt->cipso) { in ip_options_compile()
456 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in ip_options_compile()
Dip_sockglue.c1165 if (!!val && !ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
Daf_inet.c310 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dflow.c56 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
Ddevx.c63 if (!capable(CAP_NET_RAW)) in mlx5_ib_devx_create()
/Linux-v4.19/net/ipv6/
Ddatagram.c853 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
873 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
898 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()
405 if (optname != IPV6_RTHDR && !ns_capable(net->user_ns, CAP_NET_RAW)) in do_ipv6_setsockopt()
Daf_inet6.c172 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
/Linux-v4.19/net/bluetooth/
Dhci_sock.c1233 if (!capable(CAP_NET_RAW)) { in hci_sock_bind()
1765 !capable(CAP_NET_RAW)) { in hci_sock_sendmsg()
1788 if (!capable(CAP_NET_RAW)) { in hci_sock_sendmsg()
1874 if (!capable(CAP_NET_RAW)) { in hci_sock_setsockopt()
Dl2cap_sock.c1631 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
/Linux-v4.19/net/ieee802154/
Dsocket.c914 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt()
938 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt()
/Linux-v4.19/net/xdp/
Dxsk.c724 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in xsk_create()
/Linux-v4.19/net/llc/
Daf_llc.c165 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
/Linux-v4.19/drivers/infiniband/core/
Duverbs_cmd.c1365 if (cmd->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in create_qp()
1500 if (!capable(CAP_NET_RAW)) { in create_qp()
3515 if (!capable(CAP_NET_RAW)) in ib_uverbs_ex_create_flow()
/Linux-v4.19/net/core/
Dsock.c534 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in sock_setbindtodevice()
Dskbuff.c4331 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); in skb_may_tx_timestamp()
/Linux-v4.19/net/packet/
Daf_packet.c3190 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in packet_create()