| /linux/drivers/net/wireless/broadcom/b43legacy/ |
| H A D | sysfs.c | 71 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/8021q/ |
| H A D | vlan.c | 542 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 552 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 561 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 570 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 585 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 592 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
|
| /linux/drivers/net/wireless/broadcom/b43/ |
| H A D | sysfs.c | 44 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_show() 82 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_store()
|
| /linux/net/bluetooth/ |
| H A D | hci_sock.c | 1028 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl() 1039 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl() 1044 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl() 1112 if (sk_capable(sk, CAP_NET_ADMIN)) in hci_sock_ioctl() 1137 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl() 1142 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl() 1147 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl() 1152 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl() 1164 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl() 1273 if (capable(CAP_NET_ADMIN)) in hci_sock_bind() [all...] |
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_mtu.c | 10 __caps_unpriv(CAP_BPF|CAP_NET_ADMIN)
|
| H A D | bpf_misc.h | 172 #define CAP_NET_ADMIN 12 macro
|
| /linux/drivers/infiniband/ulp/ipoib/ |
| H A D | ipoib_vlan.c | 175 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_add() 257 if (!capable(CAP_NET_ADMIN)) in ipoib_vlan_delete()
|
| /linux/net/core/ |
| H A D | dev_ioctl.c | 667 if (no_module && capable(CAP_NET_ADMIN)) in dev_load() 760 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl() 779 if (!capable(CAP_NET_ADMIN)) in dev_ioctl() 802 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
|
| H A D | net-sysfs.c | 167 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in netdev_store() 198 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in netdev_lock_store() 515 if (!capable(CAP_NET_ADMIN)) in tx_queue_len_store() 532 if (!capable(CAP_NET_ADMIN)) in gro_flush_timeout_store() 552 if (!capable(CAP_NET_ADMIN)) in napi_defer_hard_irqs_store() 568 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in ifalias_store() 1033 if (!capable(CAP_NET_ADMIN)) in store_rps_map() 1076 if (!capable(CAP_NET_ADMIN)) in store_rps_dev_flow_table_cnt() 1469 if (!capable(CAP_NET_ADMIN)) in tx_maxrate_store() 1791 if (!capable(CAP_NET_ADMIN)) in xps_cpus_store() [all …]
|
| H A D | sock.c | 464 sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)); in sk_set_prio_allowed() 1241 if (valbool && !sockopt_capable(CAP_NET_ADMIN)) in sk_setsockopt() 1247 !sockopt_capable(CAP_NET_ADMIN)) in sk_setsockopt() 1316 if (val && !sockopt_capable(CAP_NET_ADMIN)) in sk_setsockopt() 1357 if (!sockopt_capable(CAP_NET_ADMIN)) { in sk_setsockopt() 1379 if (!sockopt_capable(CAP_NET_ADMIN)) { in sk_setsockopt() 1469 !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) { in sk_setsockopt() 1529 !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) { in sk_setsockopt() 1630 !sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) { in sk_setsockopt() 3046 !ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) in __sock_cmsg_send() [all...] |
| /linux/tools/testing/selftests/net/ |
| H A D | epoll_busy_poll.c | 215 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/drivers/net/wan/ |
| H A D | hdlc_raw.c | 58 if (!capable(CAP_NET_ADMIN)) in raw_ioctl()
|
| H A D | hdlc_raw_eth.c | 74 if (!capable(CAP_NET_ADMIN)) in raw_eth_ioctl()
|
| /linux/net/phonet/ |
| H A D | pn_netlink.c | 62 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 D | cec-ioc-g-mode.rst | 168 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/ipv6/ |
| H A D | ip6_flowlabel.c | 341 if (ttl > FL_MAX_LINGER && !capable(CAP_NET_ADMIN)) in check_linger() 505 !capable(CAP_NET_ADMIN))) in mem_check() 616 ns_capable(net->user_ns, CAP_NET_ADMIN)) { in ipv6_flowlabel_renew() 699 !capable(CAP_NET_ADMIN)) in ipv6_flowlabel_get()
|
| /linux/net/ |
| H A D | sysctl_net.c | 48 if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) { in net_ctl_permissions()
|
| /linux/net/ipv4/ |
| H A D | tcp_ulp.c | 42 if (!ulp && capable(CAP_NET_ADMIN)) { in __tcp_ulp_find_autoload()
|
| /linux/net/netfilter/ |
| H A D | nfnetlink_cthelper.c | 439 if (!capable(CAP_NET_ADMIN)) in nfnl_cthelper_new() 641 if (!capable(CAP_NET_ADMIN)) in nfnl_cthelper_get() 705 if (!capable(CAP_NET_ADMIN)) in nfnl_cthelper_del()
|
| /linux/drivers/staging/octeon/ |
| H A D | ethernet-mdio.c | 29 if (!capable(CAP_NET_ADMIN)) in cvm_oct_nway_reset()
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | common.h | 43 CAP_NET_ADMIN, in _init_caps()
|
| /linux/drivers/connector/ |
| H A D | connector.c | 176 if (ns_capable(net->user_ns, CAP_NET_ADMIN)) in cn_bind()
|
| /linux/net/sctp/ |
| H A D | diag.c | 442 .net_admin = netlink_net_capable(skb, CAP_NET_ADMIN), in sctp_diag_dump_one() 478 .net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN), in sctp_diag_dump()
|
| /linux/drivers/infiniband/core/ |
| H A D | netlink.c | 170 !netlink_capable(skb, CAP_NET_ADMIN)) { in rdma_nl_rcv_msg()
|
| /linux/net/x25/ |
| H A D | af_x25.c | 1422 if (!capable(CAP_NET_ADMIN)) in x25_ioctl() 1431 if (!capable(CAP_NET_ADMIN)) in x25_ioctl() 1700 if (!capable(CAP_NET_ADMIN)) in compat_x25_ioctl() 1709 if (!capable(CAP_NET_ADMIN)) in compat_x25_ioctl()
|