Home
last modified time | relevance | path

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

12345678

/Linux-v5.4/net/bridge/
Dbr_ioctl.c89 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in add_del_if()
181 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
188 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
195 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
202 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
242 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
250 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
259 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
273 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
336 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in old_deviceless()
[all …]
/Linux-v5.4/drivers/net/wireless/broadcom/b43legacy/
Dsysfs.c69 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()
175 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_preamble_store()
/Linux-v5.4/net/atm/
Dresources.c314 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
327 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
353 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
366 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
410 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
Draw.c50 if (!capable(CAP_NET_ADMIN) && in atm_send_aal0()
/Linux-v5.4/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-v5.4/net/8021q/
Dvlan.c577 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
587 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
596 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
605 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
620 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
627 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
/Linux-v5.4/net/core/
Ddev_ioctl.c353 if (no_module && capable(CAP_NET_ADMIN)) in dev_load()
440 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
457 if (!capable(CAP_NET_ADMIN)) in dev_ioctl()
482 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
Dnet-sysfs.c85 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in netdev_store()
349 if (!capable(CAP_NET_ADMIN)) in tx_queue_len_store()
366 if (!capable(CAP_NET_ADMIN)) in gro_flush_timeout_store()
381 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in ifalias_store()
716 if (!capable(CAP_NET_ADMIN)) in store_rps_map()
796 if (!capable(CAP_NET_ADMIN)) in store_rps_dev_flow_table_cnt()
1094 if (!capable(CAP_NET_ADMIN)) in tx_maxrate_store()
1300 if (!capable(CAP_NET_ADMIN)) in xps_cpus_store()
1381 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in xps_rxqs_store()
/Linux-v5.4/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-v5.4/net/bluetooth/hidp/
Dsock.c63 if (!capable(CAP_NET_ADMIN)) in do_hidp_sock_ioctl()
90 if (!capable(CAP_NET_ADMIN)) in do_hidp_sock_ioctl()
177 if (!capable(CAP_NET_ADMIN)) in hidp_sock_compat_ioctl()
/Linux-v5.4/drivers/net/bonding/
Dbond_sysfs.c537 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) { in bonding_show_ad_actor_key()
557 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) { in bonding_show_ad_partner_key()
577 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) { in bonding_show_ad_partner_mac()
686 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) in bonding_show_ad_actor_sys_prio()
700 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) in bonding_show_ad_actor_system()
715 if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) in bonding_show_ad_user_port_key()
Dbond_procfs.c141 if (capable(CAP_NET_ADMIN)) { in bond_info_show_master()
209 if (capable(CAP_NET_ADMIN)) { in bond_info_show_slave()
/Linux-v5.4/net/bluetooth/
Dhci_sock.c939 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
950 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
955 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
988 if (capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1013 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1018 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1023 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1028 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1040 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1119 if (capable(CAP_NET_ADMIN)) in hci_sock_bind()
[all …]
/Linux-v5.4/drivers/infiniband/ulp/ipoib/
Dipoib_vlan.c172 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_add()
248 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_delete()
/Linux-v5.4/crypto/
Dcrypto_user_base.c266 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_update_alg()
301 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_del_alg()
340 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_add_alg()
382 if (!netlink_capable(skb, CAP_NET_ADMIN)) in crypto_del_rng()
/Linux-v5.4/net/bluetooth/bnep/
Dsock.c66 if (!capable(CAP_NET_ADMIN)) in do_bnep_sock_ioctl()
92 if (!capable(CAP_NET_ADMIN)) in do_bnep_sock_ioctl()
/Linux-v5.4/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-v5.4/net/ipv4/
Draw_diag.c115 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in raw_diag_dump_one()
149 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in raw_diag_dump()
Dudp_diag.c77 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in udp_dump_one()
98 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in udp_dump()
Dtcp_ulp.c41 if (!ulp && capable(CAP_NET_ADMIN)) { in __tcp_ulp_find_autoload()
/Linux-v5.4/include/uapi/linux/
Dcapability.h203 #define CAP_NET_ADMIN 12 macro
/Linux-v5.4/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-v5.4/net/
Dsysctl_net.c48 if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) { in net_ctl_permissions()
/Linux-v5.4/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