Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/capabilities/
H A Dtest_execve.c291 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 Dcapability.h211 #define CAP_NET_RAW 13 macro
/linux/net/ipv4/
H A Dip_options.c396 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()
H A Dip_sockglue.c1011 if (!!val && !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
H A Daf_inet.c323 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
/linux/net/ieee802154/
H A Dsocket.c906 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt()
930 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt()
1015 if (!capable(CAP_NET_RAW)) in ieee802154_create()
/linux/net/ipv6/
H A Ddatagram.c878 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
898 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
923 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
H A Dipv6_sockglue.c313 if (optname != IPV6_RTHDR && !sockopt_ns_capable(net->user_ns, CAP_NET_RAW)) in ipv6_set_opt_hdr()
757 if (valbool && !sockopt_ns_capable(net->user_ns, CAP_NET_RAW) && in do_ipv6_setsockopt()
H A Daf_inet6.c174 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
/linux/net/bluetooth/
H A Dhci_sock.c1377 if (!capable(CAP_NET_RAW)) { in hci_sock_bind()
1888 !capable(CAP_NET_RAW)) { in hci_sock_sendmsg()
1911 if (!capable(CAP_NET_RAW)) { in hci_sock_sendmsg()
1991 if (!capable(CAP_NET_RAW)) { in hci_sock_setsockopt_old()
H A Dl2cap_sock.c1962 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
/linux/net/nfc/
H A Drawsock.c345 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in rawsock_create()
H A Dllcp_sock.c1037 if (!capable(CAP_NET_RAW)) in llcp_sock_create()
/linux/Documentation/virt/uml/
H A Duser_mode_linux_howto_v2.rst236 capability ``CAP_NET_ADMIN`` or ``CAP_NET_RAW`` to the uml binary.
341 Privileges required: hybrid requires ``CAP_NET_RAW`` capability by
391 Privileges required: raw socket transport requires `CAP_NET_RAW`
450 Privileges required: GRE requires ``CAP_NET_RAW``
524 Privileges required: L2TPv3 requires ``CAP_NET_RAW`` for raw IP mode and
/linux/drivers/infiniband/hw/mlx5/
H A Ddm.c363 if (!capable(CAP_SYS_RAWIO) || !capable(CAP_NET_RAW)) in handle_alloc_dm_sw_icm()
/linux/net/mctp/
H A Daf_mctp.c222 if (!capable(CAP_NET_RAW)) in mctp_sendmsg()
/linux/net/core/
H A Dsock.c462 sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) || in sk_set_prio_allowed()
649 if (sk->sk_bound_dev_if && !ns_capable(net->user_ns, CAP_NET_RAW)) in sock_bindtoindex_locked()
1521 if (!sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in sk_setsockopt()
3018 if (!ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in __sock_cmsg_send()
/linux/drivers/isdn/mISDN/
H A Dsocket.c755 if (!capable(CAP_NET_RAW)) in base_sock_create()
/linux/net/llc/
H A Daf_llc.c177 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
/linux/net/appletalk/
H A Dddp.c1050 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in atalk_create()
/linux/net/ax25/
H A Daf_ax25.c897 if (!capable(CAP_NET_RAW)) in ax25_create()
/linux/net/xdp/
H A Dxsk.c1862 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in xsk_create()
/linux/drivers/infiniband/core/
H A Ddevice.c172 return ns_capable(net->user_ns, CAP_NET_RAW); in rdma_dev_has_raw_cap()
/linux/Documentation/networking/
H A Daf_xdp.rst439 to a different interface. Updating the value requires CAP_NET_RAW.
/linux/net/packet/
H A Daf_packet.c3340 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in packet_create()

12