Home
last modified time | relevance | path

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

12345678

/Linux-v5.10/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()
249 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
258 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
272 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
335 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in old_deviceless()
[all …]
/Linux-v5.10/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-v5.10/net/atm/
Dresources.c274 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
287 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
313 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
326 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
370 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
Draw.c50 if (!capable(CAP_NET_ADMIN) && in atm_send_aal0()
/Linux-v5.10/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.10/net/8021q/
Dvlan.c581 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
591 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
600 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
609 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
624 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
631 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
/Linux-v5.10/net/core/
Ddev_ioctl.c375 if (no_module && capable(CAP_NET_ADMIN)) in dev_load()
462 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
479 if (!capable(CAP_NET_ADMIN)) in dev_ioctl()
504 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
Dnet-sysfs.c86 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in netdev_store()
362 if (!capable(CAP_NET_ADMIN)) in tx_queue_len_store()
379 if (!capable(CAP_NET_ADMIN)) in gro_flush_timeout_store()
396 if (!capable(CAP_NET_ADMIN)) in napi_defer_hard_irqs_store()
411 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in ifalias_store()
748 if (!capable(CAP_NET_ADMIN)) in store_rps_map()
837 if (!capable(CAP_NET_ADMIN)) in store_rps_dev_flow_table_cnt()
1179 if (!capable(CAP_NET_ADMIN)) in tx_maxrate_store()
1385 if (!capable(CAP_NET_ADMIN)) in xps_cpus_store()
1466 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in xps_rxqs_store()
/Linux-v5.10/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.10/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.10/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.10/net/bluetooth/
Dhci_sock.c949 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
960 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
965 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
998 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()
1033 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1038 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1050 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1145 if (capable(CAP_NET_ADMIN)) in hci_sock_bind()
[all …]
/Linux-v5.10/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-v5.10/drivers/infiniband/ulp/ipoib/
Dipoib_vlan.c175 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_add()
253 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_delete()
/Linux-v5.10/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.10/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.10/net/mptcp/
Dmptcp_diag.c54 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in mptcp_diag_dump_one()
74 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in mptcp_diag_dump()
/Linux-v5.10/net/ipv4/
Draw_diag.c114 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in raw_diag_dump_one()
144 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()
95 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in udp_dump()
/Linux-v5.10/include/uapi/linux/
Dcapability.h203 #define CAP_NET_ADMIN 12 macro
/Linux-v5.10/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.10/net/
Dsysctl_net.c48 if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) { in net_ctl_permissions()
/Linux-v5.10/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