/linux-6.3-rc2/tools/testing/selftests/capabilities/ |
A 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-6.3-rc2/include/uapi/linux/ |
A D | capability.h | 209 #define CAP_NET_RAW 13 macro
|
/linux-6.3-rc2/net/ipv4/ |
A D | ip_options.c | 396 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in __ip_options_compile() 431 if ((!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) || opt->cipso) { in __ip_options_compile() 444 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in __ip_options_compile()
|
A D | ip_sockglue.c | 1344 if (!!val && !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
|
A D | af_inet.c | 307 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
|
/linux-6.3-rc2/net/ieee802154/ |
A D | socket.c | 908 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt() 932 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt() 1018 if (!capable(CAP_NET_RAW)) in ieee802154_create()
|
/linux-6.3-rc2/net/ipv6/ |
A D | datagram.c | 876 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl() 896 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl() 921 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
|
A D | ipv6_sockglue.c | 330 if (optname != IPV6_RTHDR && !sockopt_ns_capable(net->user_ns, CAP_NET_RAW)) in ipv6_set_opt_hdr() 628 if (valbool && !sockopt_ns_capable(net->user_ns, CAP_NET_RAW) && in do_ipv6_setsockopt()
|
A D | af_inet6.c | 181 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
|
/linux-6.3-rc2/drivers/infiniband/core/ |
A D | uverbs_std_types_qp.c | 136 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
|
A D | counters.c | 454 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
|
A D | uverbs_cmd.c | 1298 if (!capable(CAP_NET_RAW)) in create_qp() 1429 if (!capable(CAP_NET_RAW)) { in create_qp() 3195 if (!capable(CAP_NET_RAW)) in ib_uverbs_ex_create_flow()
|
/linux-6.3-rc2/net/bluetooth/ |
A D | hci_sock.c | 1278 if (!capable(CAP_NET_RAW)) { in hci_sock_bind() 1782 !capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1805 if (!capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1889 if (!capable(CAP_NET_RAW)) { in hci_sock_setsockopt_old()
|
A D | l2cap_sock.c | 1900 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
|
/linux-6.3-rc2/net/nfc/ |
A D | rawsock.c | 334 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in rawsock_create()
|
A D | llcp_sock.c | 1030 if (!capable(CAP_NET_RAW)) in llcp_sock_create()
|
/linux-6.3-rc2/net/core/ |
A D | sock.c | 631 if (sk->sk_bound_dev_if && !ns_capable(net->user_ns, CAP_NET_RAW)) in sock_bindtoindex_locked() 1210 sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) || in sk_setsockopt() 1356 if (!sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in sk_setsockopt() 1365 if (!sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in sk_setsockopt() 2755 if (!ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in __sock_cmsg_send()
|
/linux-6.3-rc2/net/mctp/ |
A D | af_mctp.c | 126 if (!capable(CAP_NET_RAW)) in mctp_sendmsg()
|
/linux-6.3-rc2/Documentation/virt/uml/ |
A D | user_mode_linux_howto_v2.rst | 263 capability ``CAP_NET_ADMIN`` or ``CAP_NET_RAW`` to the uml binary. 368 Privileges required: hybrid requires ``CAP_NET_RAW`` capability by 418 Privileges required: raw socket transport requires `CAP_NET_RAW` 477 Privileges required: GRE requires ``CAP_NET_RAW`` 551 Privileges required: L2TPv3 requires ``CAP_NET_RAW`` for raw IP mode and
|
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/ |
A D | dm.c | 361 if (!capable(CAP_SYS_RAWIO) || !capable(CAP_NET_RAW)) in handle_alloc_dm_sw_icm()
|
A D | fs.c | 1922 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER() 2163 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
|
/linux-6.3-rc2/drivers/isdn/mISDN/ |
A D | socket.c | 755 if (!capable(CAP_NET_RAW)) in base_sock_create()
|
/linux-6.3-rc2/net/llc/ |
A D | af_llc.c | 177 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
|
/linux-6.3-rc2/net/xdp/ |
A D | xsk.c | 1409 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in xsk_create()
|
/linux-6.3-rc2/net/appletalk/ |
A D | ddp.c | 1036 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in atalk_create()
|