Home
last modified time | relevance | path

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

12

/linux-6.14.4/tools/testing/selftests/capabilities/
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-6.14.4/include/uapi/linux/
Dcapability.h210 #define CAP_NET_RAW 13 macro
/linux-6.14.4/net/ipv4/
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()
Dip_sockglue.c1011 if (!!val && !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in do_ip_setsockopt()
Daf_inet.c315 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet_create()
/linux-6.14.4/net/ieee802154/
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-6.14.4/net/ipv6/
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()
Dipv6_sockglue.c329 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()
Daf_inet6.c182 !ns_capable(net->user_ns, CAP_NET_RAW)) in inet6_create()
/linux-6.14.4/net/bluetooth/
Dhci_sock.c1368 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()
Dl2cap_sock.c1915 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
/linux-6.14.4/drivers/infiniband/core/
Duverbs_std_types_qp.c136 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
Dcounters.c454 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
Duverbs_cmd.c1296 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()
/linux-6.14.4/net/nfc/
Drawsock.c334 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in rawsock_create()
Dllcp_sock.c1037 if (!capable(CAP_NET_RAW)) in llcp_sock_create()
/linux-6.14.4/net/mctp/
Daf_mctp.c126 if (!capable(CAP_NET_RAW)) in mctp_sendmsg()
/linux-6.14.4/drivers/infiniband/hw/mlx5/
Ddm.c363 if (!capable(CAP_SYS_RAWIO) || !capable(CAP_NET_RAW)) in handle_alloc_dm_sw_icm()
Dfs.c1926 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
2428 if (!capable(CAP_NET_RAW)) in UVERBS_HANDLER()
/linux-6.14.4/Documentation/virt/uml/
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.14.4/net/core/
Dsock.c460 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()
2942 if (!ns_capable(sock_net(sk)->user_ns, CAP_NET_RAW) && in __sock_cmsg_send()
/linux-6.14.4/drivers/isdn/mISDN/
Dsocket.c755 if (!capable(CAP_NET_RAW)) in base_sock_create()
/linux-6.14.4/net/llc/
Daf_llc.c177 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in llc_ui_create()
/linux-6.14.4/net/xdp/
Dxsk.c1706 if (!ns_capable(net->user_ns, CAP_NET_RAW)) in xsk_create()
/linux-6.14.4/net/appletalk/
Dddp.c1049 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in atalk_create()

12