/Linux-v5.4/tools/testing/selftests/capabilities/ |
D | test_execve.c | 297 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-v5.4/include/uapi/linux/ |
D | capability.h | 209 #define CAP_NET_RAW 13 macro
|
/Linux-v5.4/net/ipv4/ |
D | ip_options.c | 409 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in __ip_options_compile() 444 if ((!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) || opt->cipso) { in __ip_options_compile() 457 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in __ip_options_compile()
|
D | ip_sockglue.c | 1165 if (!!val && !ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
|
D | af_inet.c | 310 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
|
/Linux-v5.4/net/ieee802154/ |
D | socket.c | 903 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt() 927 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt() 1012 if (!capable(CAP_NET_RAW)) in ieee802154_create()
|
/Linux-v5.4/net/ipv6/ |
D | datagram.c | 854 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl() 874 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl() 899 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
|
D | ipv6_sockglue.c | 366 if (valbool && !ns_capable(net->user_ns, CAP_NET_RAW) && in do_ipv6_setsockopt() 403 if (optname != IPV6_RTHDR && !ns_capable(net->user_ns, CAP_NET_RAW)) in do_ipv6_setsockopt()
|
D | af_inet6.c | 169 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
|
/Linux-v5.4/net/bluetooth/ |
D | hci_sock.c | 1232 if (!capable(CAP_NET_RAW)) { in hci_sock_bind() 1764 !capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1787 if (!capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1873 if (!capable(CAP_NET_RAW)) { in hci_sock_setsockopt()
|
D | l2cap_sock.c | 1634 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
|
/Linux-v5.4/drivers/infiniband/hw/mlx5/ |
D | flow.c | 89 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
|
D | devx.c | 143 if (is_user && capable(CAP_NET_RAW) && in mlx5_ib_devx_create()
|
/Linux-v5.4/drivers/infiniband/core/ |
D | counters.c | 419 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
|
D | uverbs_cmd.c | 1287 if (cmd->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in create_qp() 1410 if (!capable(CAP_NET_RAW)) { in create_qp() 3207 if (!capable(CAP_NET_RAW)) in ib_uverbs_ex_create_flow()
|
D | nldev.c | 705 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in fill_stat_counter_qps()
|
/Linux-v5.4/drivers/isdn/mISDN/ |
D | socket.c | 757 if (!capable(CAP_NET_RAW)) in base_sock_create()
|
/Linux-v5.4/net/nfc/ |
D | llcp_sock.c | 1013 if (!capable(CAP_NET_RAW)) in llcp_sock_create()
|
/Linux-v5.4/net/llc/ |
D | af_llc.c | 169 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
|
/Linux-v5.4/net/xdp/ |
D | xsk.c | 1077 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in xsk_create()
|
/Linux-v5.4/net/ax25/ |
D | af_ax25.c | 858 if (!capable(CAP_NET_RAW)) in ax25_create()
|
/Linux-v5.4/net/appletalk/ |
D | ddp.c | 1028 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in atalk_create()
|
/Linux-v5.4/net/core/ |
D | sock.c | 580 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in sock_setbindtodevice_locked()
|
D | skbuff.c | 4542 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); in skb_may_tx_timestamp()
|
/Linux-v5.4/net/packet/ |
D | af_packet.c | 3221 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in packet_create()
|