Home
last modified time | relevance | path

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

12345

/linux/net/bridge/
H A Dbr_ioctl.c91 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in add_del_if()
219 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
226 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
233 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
240 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
280 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
287 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
296 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
310 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
379 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in old_deviceless()
[all …]
/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/atm/
H A Dresources.c272 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
285 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
311 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
324 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
368 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
H A Draw.c50 if (!capable(CAP_NET_ADMIN) && in atm_send_aal0()
/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/8021q/
H A Dvlan.c602 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
612 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
621 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
630 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
645 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
652 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
/linux/net/bluetooth/hidp/
H A Dsock.c64 if (!capable(CAP_NET_ADMIN)) in do_hidp_sock_ioctl()
91 if (!capable(CAP_NET_ADMIN)) in do_hidp_sock_ioctl()
178 if (!capable(CAP_NET_ADMIN)) in hidp_sock_compat_ioctl()
/linux/net/bluetooth/
H A Dhci_sock.c1019 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1030 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1035 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1103 if (sk_capable(sk, CAP_NET_ADMIN)) in hci_sock_ioctl()
1128 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1133 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1138 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1143 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1155 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1262 if (capable(CAP_NET_ADMIN)) in hci_sock_bind()
[all …]
/linux/drivers/net/bonding/
H A Dbond_sysfs.c563 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) { in bonding_show_ad_actor_key()
584 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) { in bonding_show_ad_partner_key()
605 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) { in bonding_show_ad_partner_mac()
716 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) in bonding_show_ad_actor_sys_prio()
730 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) in bonding_show_ad_actor_system()
745 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) in bonding_show_ad_user_port_key()
H A Dbond_procfs.c163 if (capable(CAP_NET_ADMIN)) { in bond_info_show_master()
232 if (capable(CAP_NET_ADMIN)) { in bond_info_show_slave()
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_mtu.c10 __caps_unpriv(CAP_BPF|CAP_NET_ADMIN)
H A Dbpf_misc.h170 #define CAP_NET_ADMIN 12 macro
/linux/net/bluetooth/bnep/
H A Dsock.c67 if (!capable(CAP_NET_ADMIN)) in do_bnep_sock_ioctl()
93 if (!capable(CAP_NET_ADMIN)) in do_bnep_sock_ioctl()
/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/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/net/core/
H A Dnet-sysfs.c173 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in netdev_store()
204 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in netdev_lock_store()
521 if (!capable(CAP_NET_ADMIN)) in tx_queue_len_store()
538 if (!capable(CAP_NET_ADMIN)) in gro_flush_timeout_store()
558 if (!capable(CAP_NET_ADMIN)) in napi_defer_hard_irqs_store()
574 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in ifalias_store()
1039 if (!capable(CAP_NET_ADMIN)) in store_rps_map()
1082 if (!capable(CAP_NET_ADMIN)) in store_rps_dev_flow_table_cnt()
1475 if (!capable(CAP_NET_ADMIN)) in tx_maxrate_store()
1797 if (!capable(CAP_NET_ADMIN)) in xps_cpus_store()
[all …]
/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/ipv4/
H A Dtcp_ulp.c42 if (!ulp && capable(CAP_NET_ADMIN)) { in __tcp_ulp_find_autoload()
/linux/net/
H A Dsysctl_net.c48 if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) { in net_ctl_permissions()
/linux/net/netfilter/
H A Dnfnetlink_cthelper.c426 if (!capable(CAP_NET_ADMIN)) in nfnl_cthelper_new()
625 if (!capable(CAP_NET_ADMIN)) in nfnl_cthelper_get()
689 if (!capable(CAP_NET_ADMIN)) in nfnl_cthelper_del()
H A Dnfnetlink_osf.c298 if (!capable(CAP_NET_ADMIN)) in nfnl_osf_add_callback()
367 if (!capable(CAP_NET_ADMIN)) in nfnl_osf_remove_callback()
/linux/drivers/staging/octeon/
H A Dethernet-mdio.c29 if (!capable(CAP_NET_ADMIN)) in cvm_oct_nway_reset()

12345