Home
last modified time | relevance | path

Searched refs:CAP_NET_ADMIN (Results 1 – 25 of 121) sorted by relevance

12345

/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dsysfs.c71 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_interfmode_show()
105 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_interfmode_store()
150 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_preamble_show()
173 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_preamble_store()
/linux/net/8021q/
H A Dvlan.c542 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
552 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
561 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
570 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
585 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
592 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
/linux/drivers/net/wireless/broadcom/b43/
H A Dsysfs.c44 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_show()
82 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_store()
/linux/net/bluetooth/
H A Dhci_sock.c1028 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1039 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1044 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1112 if (sk_capable(sk, CAP_NET_ADMIN)) in hci_sock_ioctl()
1137 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1142 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1147 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1152 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1164 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1273 if (capable(CAP_NET_ADMIN)) in hci_sock_bind()
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_mtu.c10 __caps_unpriv(CAP_BPF|CAP_NET_ADMIN)
H A Dbpf_misc.h172 #define CAP_NET_ADMIN 12 macro
/linux/drivers/infiniband/ulp/ipoib/
H A Dipoib_vlan.c175 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_add()
257 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_delete()
/linux/net/core/
H A Ddev_ioctl.c667 if (no_module && capable(CAP_NET_ADMIN)) in dev_load()
760 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
779 if (!capable(CAP_NET_ADMIN)) in dev_ioctl()
802 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
H A Dnet-sysfs.c167 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in netdev_store()
198 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in netdev_lock_store()
515 if (!capable(CAP_NET_ADMIN)) in tx_queue_len_store()
532 if (!capable(CAP_NET_ADMIN)) in gro_flush_timeout_store()
552 if (!capable(CAP_NET_ADMIN)) in napi_defer_hard_irqs_store()
568 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in ifalias_store()
1033 if (!capable(CAP_NET_ADMIN)) in store_rps_map()
1076 if (!capable(CAP_NET_ADMIN)) in store_rps_dev_flow_table_cnt()
1469 if (!capable(CAP_NET_ADMIN)) in tx_maxrate_store()
1791 if (!capable(CAP_NET_ADMIN)) in xps_cpus_store()
[all …]
H A Dsock.c464 sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)); in sk_set_prio_allowed()
1241 if (valbool && !sockopt_capable(CAP_NET_ADMIN)) in sk_setsockopt()
1247 !sockopt_capable(CAP_NET_ADMIN)) in sk_setsockopt()
1316 if (val && !sockopt_capable(CAP_NET_ADMIN)) in sk_setsockopt()
1357 if (!sockopt_capable(CAP_NET_ADMIN)) { in sk_setsockopt()
1379 if (!sockopt_capable(CAP_NET_ADMIN)) { in sk_setsockopt()
1469 !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) { in sk_setsockopt()
1529 !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) { in sk_setsockopt()
1630 !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) { in sk_setsockopt()
3046 !ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) in __sock_cmsg_send()
[all...]
/linux/tools/testing/selftests/net/
H A Depoll_busy_poll.c215 ret = cap_get_flag(self->caps, CAP_NET_ADMIN, CAP_EFFECTIVE, &tmp); in TEST_F()
231 cap_value_t net_admin[] = { CAP_NET_ADMIN }; in TEST_F()
/linux/drivers/net/wan/
H A Dhdlc_raw.c58 if (!capable(CAP_NET_ADMIN)) in raw_ioctl()
H A Dhdlc_raw_eth.c74 if (!capable(CAP_NET_ADMIN)) in raw_eth_ioctl()
/linux/net/phonet/
H A Dpn_netlink.c62 if (!netlink_capable(skb, CAP_NET_ADMIN)) in addr_doit()
243 if (!netlink_capable(skb, CAP_NET_ADMIN)) in route_doit()
/linux/Documentation/userspace-api/media/cec/
H A Dcec-ioc-g-mode.rst168 This mode is only allowed if the process has the ``CAP_NET_ADMIN``
181 allowed if the process has the ``CAP_NET_ADMIN`` capability. If
195 the process has the ``CAP_NET_ADMIN`` capability. If that is not
290 Monitor mode is requested, but the process does have the ``CAP_NET_ADMIN``
/linux/net/ipv6/
H A Dip6_flowlabel.c341 if (ttl > FL_MAX_LINGER && !capable(CAP_NET_ADMIN)) in check_linger()
505 !capable(CAP_NET_ADMIN))) in mem_check()
616 ns_capable(net->user_ns, CAP_NET_ADMIN)) { in ipv6_flowlabel_renew()
699 !capable(CAP_NET_ADMIN)) in ipv6_flowlabel_get()
/linux/net/
H A Dsysctl_net.c48 if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) { in net_ctl_permissions()
/linux/net/ipv4/
H A Dtcp_ulp.c42 if (!ulp && capable(CAP_NET_ADMIN)) { in __tcp_ulp_find_autoload()
/linux/net/netfilter/
H A Dnfnetlink_cthelper.c439 if (!capable(CAP_NET_ADMIN)) in nfnl_cthelper_new()
641 if (!capable(CAP_NET_ADMIN)) in nfnl_cthelper_get()
705 if (!capable(CAP_NET_ADMIN)) in nfnl_cthelper_del()
/linux/drivers/staging/octeon/
H A Dethernet-mdio.c29 if (!capable(CAP_NET_ADMIN)) in cvm_oct_nway_reset()
/linux/tools/testing/selftests/landlock/
H A Dcommon.h43 CAP_NET_ADMIN, in _init_caps()
/linux/drivers/connector/
H A Dconnector.c176 if (ns_capable(net->user_ns, CAP_NET_ADMIN)) in cn_bind()
/linux/net/sctp/
H A Ddiag.c442 .net_admin = netlink_net_capable(skb, CAP_NET_ADMIN), in sctp_diag_dump_one()
478 .net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN), in sctp_diag_dump()
/linux/drivers/infiniband/core/
H A Dnetlink.c170 !netlink_capable(skb, CAP_NET_ADMIN)) { in rdma_nl_rcv_msg()
/linux/net/x25/
H A Daf_x25.c1422 if (!capable(CAP_NET_ADMIN)) in x25_ioctl()
1431 if (!capable(CAP_NET_ADMIN)) in x25_ioctl()
1700 if (!capable(CAP_NET_ADMIN)) in compat_x25_ioctl()
1709 if (!capable(CAP_NET_ADMIN)) in compat_x25_ioctl()

12345