Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/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-6.3-rc2/include/uapi/linux/
A Dcapability.h209 #define CAP_NET_RAW 13 macro
/linux-6.3-rc2/net/ipv4/
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()
A Dip_sockglue.c1344 if (!!val && !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
A Daf_inet.c307 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
/linux-6.3-rc2/net/ieee802154/
A Dsocket.c908 !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 Ddatagram.c876 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 Dipv6_sockglue.c330 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 Daf_inet6.c181 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
/linux-6.3-rc2/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.c1298 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 Dhci_sock.c1278 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 Dl2cap_sock.c1900 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
/linux-6.3-rc2/net/nfc/
A Drawsock.c334 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in rawsock_create()
A Dllcp_sock.c1030 if (!capable(CAP_NET_RAW)) in llcp_sock_create()
/linux-6.3-rc2/net/core/
A Dsock.c631 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 Daf_mctp.c126 if (!capable(CAP_NET_RAW)) in mctp_sendmsg()
/linux-6.3-rc2/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-6.3-rc2/drivers/infiniband/hw/mlx5/
A Ddm.c361 if (!capable(CAP_SYS_RAWIO) || !capable(CAP_NET_RAW)) in handle_alloc_dm_sw_icm()
A Dfs.c1922 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 Dsocket.c755 if (!capable(CAP_NET_RAW)) in base_sock_create()
/linux-6.3-rc2/net/llc/
A Daf_llc.c177 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
/linux-6.3-rc2/net/xdp/
A Dxsk.c1409 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in xsk_create()
/linux-6.3-rc2/net/appletalk/
A Dddp.c1036 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in atalk_create()

Completed in 63 milliseconds

12