/linux/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 291 capng_update(CAPNG_ADD, CAPNG_INHERITABLE, CAP_NET_RAW); in do_tests() 292 capng_update(CAPNG_DROP, CAPNG_PERMITTED, CAP_NET_RAW); in do_tests() 293 capng_update(CAPNG_DROP, CAPNG_EFFECTIVE, CAP_NET_RAW); in do_tests() 296 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_RAW, 0, 0, 0) != -1 || errno != EPERM) { in do_tests()
|
/linux/include/uapi/linux/ |
H A D | capability.h | 210 #define CAP_NET_RAW 13 macro
|
/linux/net/ipv6/ |
H 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()
|
H A D | ipv6_sockglue.c | 329 if (optname != IPV6_RTHDR && !sockopt_ns_capable(net->user_ns, CAP_NET_RAW)) in ipv6_set_opt_hdr() 775 if (valbool && !sockopt_ns_capable(net->user_ns, CAP_NET_RAW) && in do_ipv6_setsockopt()
|
H A D | af_inet6.c | 182 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
|
/linux/net/bluetooth/ |
H A D | hci_sock.c | 1368 if (!capable(CAP_NET_RAW)) { in hci_sock_bind() 1878 !capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1901 if (!capable(CAP_NET_RAW)) { in hci_sock_sendmsg() 1981 if (!capable(CAP_NET_RAW)) { in hci_sock_setsockopt_old()
|
H A D | l2cap_sock.c | 1915 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
|
/linux/drivers/infiniband/core/ |
H A D | uverbs_std_types_qp.c | 136 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
|
H A D | counters.c | 454 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
|
H A D | uverbs_cmd.c | 1296 if (!capable(CAP_NET_RAW)) in create_qp() 1427 if (!capable(CAP_NET_RAW)) { in create_qp() 3201 if (!capable(CAP_NET_RAW)) in ib_uverbs_ex_create_flow()
|
H A D | nldev.c | 257 return privileged_qkey || capable(CAP_NET_RAW); in rdma_nl_get_privileged_qkey()
|
/linux/net/nfc/ |
H A D | rawsock.c | 334 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in rawsock_create()
|
H A D | llcp_sock.c | 1037 if (!capable(CAP_NET_RAW)) in llcp_sock_create()
|
/linux/drivers/infiniband/hw/mlx5/ |
H A D | dm.c | 363 if (!capable(CAP_SYS_RAWIO) || !capable(CAP_NET_RAW)) in handle_alloc_dm_sw_icm()
|
/linux/net/mctp/ |
H A D | af_mctp.c | 126 if (!capable(CAP_NET_RAW)) in mctp_sendmsg()
|
/linux/Documentation/virt/uml/ |
H 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/net/core/ |
H A D | sock.c | 460 sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) || in sk_set_prio_allowed() 641 if (sk->sk_bound_dev_if && !ns_capable(net->user_ns, CAP_NET_RAW)) in sock_bindtoindex_locked() 1513 if (!sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in sk_setsockopt() 2937 if (!ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in __sock_cmsg_send()
|
H A D | skbuff.c | 5424 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); in skb_may_tx_timestamp()
|
/linux/drivers/isdn/mISDN/ |
H A D | socket.c | 755 if (!capable(CAP_NET_RAW)) in base_sock_create()
|
/linux/net/llc/ |
H A D | af_llc.c | 177 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
|
/linux/net/appletalk/ |
H A D | ddp.c | 1049 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in atalk_create()
|
/linux/net/xdp/ |
H A D | xsk.c | 1700 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in xsk_create()
|
/linux/net/ax25/ |
H A D | af_ax25.c | 897 if (!capable(CAP_NET_RAW)) in ax25_create()
|
/linux/net/packet/ |
H A D | af_packet.c | 3394 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in packet_create()
|