Lines Matching refs:capable
2512 if (is_net_admin_prog_type(type) && !capable(CAP_NET_ADMIN) && !capable(CAP_SYS_ADMIN)) in bpf_prog_load()
3395 if (!capable(CAP_NET_ADMIN)) in bpf_prog_attach_check_attach_type()
3578 if (!capable(CAP_NET_ADMIN)) in bpf_prog_query()
3669 if (!capable(CAP_SYS_ADMIN)) in bpf_obj_get_next_id()
3750 if (!capable(CAP_SYS_ADMIN)) in bpf_prog_get_fd_by_id()
3777 if (!capable(CAP_SYS_ADMIN)) in bpf_map_get_fd_by_id()
4354 if (!capable(CAP_SYS_ADMIN)) in bpf_btf_get_fd_by_id()
4422 if (!capable(CAP_SYS_ADMIN)) in bpf_task_fd_query()
4778 if (!capable(CAP_SYS_ADMIN)) in bpf_link_get_fd_by_id()
4834 if (!capable(CAP_SYS_ADMIN)) in bpf_enable_stats()
4934 bool capable; in __sys_bpf() local
4937 capable = bpf_capable() || !sysctl_unprivileged_bpf_disabled; in __sys_bpf()
4947 if (!capable && in __sys_bpf()
5273 if (write && !capable(CAP_SYS_ADMIN)) in bpf_stats_handler()
5301 if (write && !capable(CAP_SYS_ADMIN)) in bpf_unpriv_handler()