/linux-6.6.21/net/bridge/ |
D | br_ioctl.c | 91 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/ |
D | sysfs.c | 71 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/ |
D | resources.c | 271 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()
|
D | raw.c | 50 if (!capable(CAP_NET_ADMIN) && in atm_send_aal0()
|
/linux-6.6.21/drivers/net/wireless/broadcom/b43/ |
D | sysfs.c | 44 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/ |
D | vlan.c | 576 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/ |
D | ax25_uid.c | 92 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/ |
D | sock.c | 64 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/ |
D | crypto_user_base.c | 268 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/ |
D | bond_sysfs.c | 566 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()
|
D | bond_procfs.c | 162 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/ |
D | hci_sock.c | 1015 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/ |
D | ipoib_vlan.c | 174 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/ |
D | sock.c | 67 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/ |
D | sock.c | 79 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/ |
D | raw_diag.c | 113 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()
|
D | udp_diag.c | 74 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()
|
D | tcp_ulp.c | 42 if (!ulp && capable(CAP_NET_ADMIN)) { in __tcp_ulp_find_autoload()
|
/linux-6.6.21/net/core/ |
D | dev_ioctl.c | 645 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()
|
D | net-sysfs.c | 89 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/ |
D | mptcp_diag.c | 54 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/ |
D | capability.h | 204 #define CAP_NET_ADMIN 12 macro
|
/linux-6.6.21/drivers/net/wan/ |
D | hdlc_raw.c | 58 if (!capable(CAP_NET_ADMIN)) in raw_ioctl()
|
D | hdlc_raw_eth.c | 74 if (!capable(CAP_NET_ADMIN)) in raw_eth_ioctl()
|
/linux-6.6.21/net/phonet/ |
D | pn_netlink.c | 61 if (!netlink_capable(skb, CAP_NET_ADMIN)) in addr_doit() 228 if (!netlink_capable(skb, CAP_NET_ADMIN)) in route_doit()
|