Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/capabilities/
A 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/include/uapi/linux/
A Dcapability.h209 #define CAP_NET_RAW 13 macro
/linux/net/ipv4/
A Dip_options.c409 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()
A Daf_inet.c307 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
A Dip_sockglue.c1342 if (!!val && !ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
/linux/net/ieee802154/
A Dsocket.c898 !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/net/ipv6/
A Ddatagram.c870 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()
A Dipv6_sockglue.c330 if (optname != IPV6_RTHDR && !ns_capable(net->user_ns, CAP_NET_RAW)) in ipv6_set_opt_hdr()
628 if (valbool && !ns_capable(net->user_ns, CAP_NET_RAW) && in do_ipv6_setsockopt()
A Daf_inet6.c173 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
/linux/net/bluetooth/
A Dhci_sock.c1276 if (!capable(CAP_NET_RAW)) { in hci_sock_bind()
1781 !capable(CAP_NET_RAW)) { in hci_sock_sendmsg()
1804 if (!capable(CAP_NET_RAW)) { in hci_sock_sendmsg()
1888 if (!capable(CAP_NET_RAW)) { in hci_sock_setsockopt_old()
A Dl2cap_sock.c1862 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
/linux/drivers/infiniband/core/
A Duverbs_std_types_qp.c136 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
A Dcounters.c454 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
A Duverbs_cmd.c1295 if (!capable(CAP_NET_RAW)) in create_qp()
1427 if (!capable(CAP_NET_RAW)) { in create_qp()
3193 if (!capable(CAP_NET_RAW)) in ib_uverbs_ex_create_flow()
/linux/net/nfc/
A Drawsock.c332 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in rawsock_create()
A Dllcp_sock.c1027 if (!capable(CAP_NET_RAW)) in llcp_sock_create()
/linux/net/mctp/
A Daf_mctp.c116 if (!capable(CAP_NET_RAW)) in mctp_sendmsg()
/linux/drivers/infiniband/hw/mlx5/
A Ddm.c362 if (!capable(CAP_SYS_RAWIO) || !capable(CAP_NET_RAW)) { in handle_alloc_dm_sw_icm()
/linux/Documentation/virt/uml/
A Duser_mode_linux_howto_v2.rst263 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/samples/bpf/
A Dxdpsock_user.c1597 data->effective &= CAP_TO_MASK(CAP_NET_RAW); in main()
1598 data->permitted &= CAP_TO_MASK(CAP_NET_RAW); in main()
/linux/drivers/isdn/mISDN/
A Dsocket.c755 if (!capable(CAP_NET_RAW)) in base_sock_create()
/linux/net/llc/
A Daf_llc.c177 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
/linux/net/xdp/
A Dxsk.c1362 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in xsk_create()
/linux/net/appletalk/
A Dddp.c1036 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in atalk_create()
/linux/net/ax25/
A Daf_ax25.c863 if (!capable(CAP_NET_RAW)) in ax25_create()

Completed in 80 milliseconds

12