/Linux-v5.15/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.15/include/uapi/linux/ |
D | capability.h | 209 #define CAP_NET_RAW 13 macro
|
/Linux-v5.15/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 | af_inet.c | 311 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
|
D | ip_sockglue.c | 1340 if (!!val && !ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
|
/Linux-v5.15/net/ieee802154/ |
D | socket.c | 898 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt() 922 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt() 1008 if (!capable(CAP_NET_RAW)) in ieee802154_create()
|
/Linux-v5.15/net/ipv6/ |
D | datagram.c | 870 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl() 890 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl() 915 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
|
D | ipv6_sockglue.c | 328 if (optname != IPV6_RTHDR && !ns_capable(net->user_ns, CAP_NET_RAW)) in ipv6_set_opt_hdr() 626 if (valbool && !ns_capable(net->user_ns, CAP_NET_RAW) && in do_ipv6_setsockopt()
|
D | af_inet6.c | 173 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
|
/Linux-v5.15/net/bluetooth/ |
D | hci_sock.c | 1275 if (!capable(CAP_NET_RAW)) { in hci_sock_bind() 1810 !capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1833 if (!capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1920 if (!capable(CAP_NET_RAW)) { in hci_sock_setsockopt()
|
D | l2cap_sock.c | 1854 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
|
/Linux-v5.15/net/mctp/ |
D | af_mctp.c | 94 if (!capable(CAP_NET_RAW)) in mctp_sendmsg()
|
/Linux-v5.15/drivers/infiniband/core/ |
D | uverbs_std_types_qp.c | 136 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
|
D | counters.c | 422 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
|
D | uverbs_cmd.c | 1298 if (!capable(CAP_NET_RAW)) in create_qp() 1430 if (!capable(CAP_NET_RAW)) { in create_qp() 3196 if (!capable(CAP_NET_RAW)) in ib_uverbs_ex_create_flow()
|
/Linux-v5.15/net/nfc/ |
D | rawsock.c | 332 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in rawsock_create()
|
D | llcp_sock.c | 1027 if (!capable(CAP_NET_RAW)) in llcp_sock_create()
|
/Linux-v5.15/drivers/infiniband/hw/mlx5/ |
D | dm.c | 362 if (!capable(CAP_SYS_RAWIO) || !capable(CAP_NET_RAW)) { in handle_alloc_dm_sw_icm()
|
/Linux-v5.15/Documentation/virt/uml/ |
D | user_mode_linux_howto_v2.rst | 258 capability ``CAP_NET_ADMIN`` or ``CAP_NET_RAW``, to the uml binary. 363 Privileges required: hybrid requires ``CAP_NET_RAW`` capability by 413 Privileges required: raw socket transport requires `CAP_NET_RAW` 472 Privileges required: GRE requires ``CAP_NET_RAW`` 546 Privileges required: L2TPv3 requires ``CAP_NET_RAW`` for raw IP mode and
|
/Linux-v5.15/samples/bpf/ |
D | xdpsock_user.c | 1597 data->effective &= CAP_TO_MASK(CAP_NET_RAW); in main() 1598 data->permitted &= CAP_TO_MASK(CAP_NET_RAW); in main()
|
/Linux-v5.15/drivers/isdn/mISDN/ |
D | socket.c | 755 if (!capable(CAP_NET_RAW)) in base_sock_create()
|
/Linux-v5.15/net/llc/ |
D | af_llc.c | 177 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
|
/Linux-v5.15/net/xdp/ |
D | xsk.c | 1377 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in xsk_create()
|
/Linux-v5.15/net/appletalk/ |
D | ddp.c | 1036 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in atalk_create()
|
/Linux-v5.15/net/ax25/ |
D | af_ax25.c | 861 if (!capable(CAP_NET_RAW)) in ax25_create()
|