Home
last modified time | relevance | path

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

12345678

/linux-6.6.21/net/bridge/
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-6.6.21/drivers/net/wireless/broadcom/b43legacy/
Dsysfs.c71 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_interfmode_show()
107 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_interfmode_store()
152 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_preamble_show()
177 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_preamble_store()
/linux-6.6.21/net/atm/
Dresources.c271 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
284 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
310 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
323 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
367 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
Draw.c50 if (!capable(CAP_NET_ADMIN) && in atm_send_aal0()
/linux-6.6.21/drivers/net/wireless/broadcom/b43/
Dsysfs.c44 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_show()
87 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_store()
/linux-6.6.21/net/8021q/
Dvlan.c576 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
586 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
595 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
604 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
619 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
626 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
/linux-6.6.21/net/ax25/
Dax25_uid.c92 if (!capable(CAP_NET_ADMIN)) in ax25_uid_ioctl()
118 if (!capable(CAP_NET_ADMIN)) in ax25_uid_ioctl()
/linux-6.6.21/net/bluetooth/hidp/
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-6.6.21/crypto/
Dcrypto_user_base.c268 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_update_alg()
303 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_del_alg()
343 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_add_alg()
385 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_del_rng()
/linux-6.6.21/drivers/net/bonding/
Dbond_sysfs.c566 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) { in bonding_show_ad_actor_key()
587 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) { in bonding_show_ad_partner_key()
608 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) { in bonding_show_ad_partner_mac()
719 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) in bonding_show_ad_actor_sys_prio()
733 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) in bonding_show_ad_actor_system()
748 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) in bonding_show_ad_user_port_key()
Dbond_procfs.c162 if (capable(CAP_NET_ADMIN)) { in bond_info_show_master()
230 if (capable(CAP_NET_ADMIN)) { in bond_info_show_slave()
/linux-6.6.21/net/bluetooth/
Dhci_sock.c1015 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1026 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1031 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1099 if (sk_capable(sk, CAP_NET_ADMIN)) in hci_sock_ioctl()
1124 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1129 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1134 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1139 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1151 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1258 if (capable(CAP_NET_ADMIN)) in hci_sock_bind()
[all …]
/linux-6.6.21/drivers/infiniband/ulp/ipoib/
Dipoib_vlan.c174 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_add()
252 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_delete()
/linux-6.6.21/net/bluetooth/bnep/
Dsock.c67 if (!capable(CAP_NET_ADMIN)) in do_bnep_sock_ioctl()
93 if (!capable(CAP_NET_ADMIN)) in do_bnep_sock_ioctl()
/linux-6.6.21/net/bluetooth/cmtp/
Dsock.c79 if (!capable(CAP_NET_ADMIN)) in do_cmtp_sock_ioctl()
104 if (!capable(CAP_NET_ADMIN)) in do_cmtp_sock_ioctl()
/linux-6.6.21/net/ipv4/
Draw_diag.c113 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in raw_diag_dump_one()
140 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in raw_diag_dump()
Dudp_diag.c74 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in udp_dump_one()
93 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in udp_dump()
Dtcp_ulp.c42 if (!ulp && capable(CAP_NET_ADMIN)) { in __tcp_ulp_find_autoload()
/linux-6.6.21/net/core/
Ddev_ioctl.c645 if (no_module && capable(CAP_NET_ADMIN)) in dev_load()
737 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
754 if (!capable(CAP_NET_ADMIN)) in dev_ioctl()
779 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
Dnet-sysfs.c89 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in netdev_store()
385 if (!capable(CAP_NET_ADMIN)) in tx_queue_len_store()
402 if (!capable(CAP_NET_ADMIN)) in gro_flush_timeout_store()
419 if (!capable(CAP_NET_ADMIN)) in napi_defer_hard_irqs_store()
434 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in ifalias_store()
893 if (!capable(CAP_NET_ADMIN)) in store_rps_map()
944 if (!capable(CAP_NET_ADMIN)) in store_rps_dev_flow_table_cnt()
1305 if (!capable(CAP_NET_ADMIN)) in tx_maxrate_store()
1543 if (!capable(CAP_NET_ADMIN)) in xps_cpus_store()
1601 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in xps_rxqs_store()
/linux-6.6.21/net/mptcp/
Dmptcp_diag.c54 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in mptcp_diag_dump_one()
155 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in mptcp_diag_dump()
/linux-6.6.21/include/uapi/linux/
Dcapability.h204 #define CAP_NET_ADMIN 12 macro
/linux-6.6.21/drivers/net/wan/
Dhdlc_raw.c58 if (!capable(CAP_NET_ADMIN)) in raw_ioctl()
Dhdlc_raw_eth.c74 if (!capable(CAP_NET_ADMIN)) in raw_eth_ioctl()
/linux-6.6.21/net/phonet/
Dpn_netlink.c61 if (!netlink_capable(skb, CAP_NET_ADMIN)) in addr_doit()
228 if (!netlink_capable(skb, CAP_NET_ADMIN)) in route_doit()

12345678