Home
last modified time | relevance | path

Searched refs:bpf_token_capable (Results 1 – 12 of 12) sorted by relevance

/linux/kernel/bpf/
H A Dtoken.c17 bool bpf_token_capable(const struct bpf_token *token, int cap) in bpf_token_capable() function
H A Dsyscall.c1285 if (!bpf_token_capable(token, CAP_BPF)) { in map_check_btf()
1481 if (sysctl_unprivileged_bpf_disabled && !bpf_token_capable(token, CAP_BPF)) in map_create_alloc()
1518 if (!bpf_token_capable(token, CAP_BPF)) in map_create_alloc()
1526 if (!bpf_token_capable(token, CAP_NET_ADMIN)) in map_create_alloc()
2960 bpf_cap = bpf_token_capable(token, CAP_BPF); in BTF_ID_LIST_GLOBAL_SINGLE()
2988 if (is_net_admin_prog_type(type) && !bpf_token_capable(token, CAP_NET_ADMIN)) in BTF_ID_LIST_GLOBAL_SINGLE()
2990 if (is_perfmon_prog_type(type) && !bpf_token_capable(token, CAP_PERFMON)) in BTF_ID_LIST_GLOBAL_SINGLE()
4486 if (!bpf_token_capable(prog->aux->token, CAP_NET_ADMIN)) in bpf_prog_attach_check_attach_type()
5584 if (!bpf_token_capable(token, CAP_BPF)) { in bpf_btf_load()
5616 if (!bpf_token_capable(token, CAP_SYS_ADMIN)) { in bpf_btf_get_fd_by_id()
[all …]
H A Dhelpers.c2124 if (!bpf_token_capable(prog->aux->token, CAP_BPF)) in bpf_base_func_proto()
2192 if (!bpf_token_capable(prog->aux->token, CAP_PERFMON)) in bpf_base_func_proto()
H A Dcore.c673 !bpf_token_capable(fp->aux->token, CAP_BPF)) in bpf_prog_kallsyms_add()
H A Dverifier.c21005 env->bpf_capable = is_priv = bpf_token_capable(env->prog->aux->token, CAP_BPF); in bpf_check()
/linux/drivers/media/rc/
H A Dbpf-lirc.c113 if (bpf_token_capable(prog->aux->token, CAP_PERFMON)) in lirc_mode2_func_proto()
/linux/include/linux/
H A Dbpf.h2860 bool bpf_token_capable(const struct bpf_token *token, int cap);
2864 return bpf_token_capable(token, CAP_PERFMON); in bpf_allow_ptr_leaks()
2869 return bpf_token_capable(token, CAP_PERFMON); in bpf_allow_uninit_stack()
2876 bpf_token_capable(token, CAP_PERFMON); in bpf_bypass_spec_v1()
2883 bpf_token_capable(token, CAP_PERFMON); in bpf_bypass_spec_v4()
3359 static inline bool bpf_token_capable(const struct bpf_token *token, int cap) in bpf_token_capable() function
H A Dfilter.h1465 if (bpf_jit_harden == 1 && bpf_token_capable(prog->aux->token, CAP_BPF)) in bpf_jit_blinding_enabled()
/linux/security/
H A Dsecurity.c5440 return call_int_hook(bpf_token_capable, token, cap); in security_bpf_token_capable()
/linux/kernel/trace/
H A Dbpf_trace.c1299 if (!bpf_token_capable(prog->aux->token, CAP_SYS_ADMIN)) in bpf_tracing_func_proto()
/linux/net/core/
H A Dfilter.c9168 if (!bpf_token_capable(prog->aux->token, CAP_BPF)) in cg_skb_is_valid_access()
9180 if (!bpf_token_capable(prog->aux->token, CAP_BPF)) in cg_skb_is_valid_access()
12393 if (!bpf_token_capable(prog->aux->token, CAP_PERFMON)) in bpf_sk_base_func_proto()
/linux/security/selinux/
H A Dhooks.c7845 LSM_HOOK_INIT(bpf_token_capable, selinux_bpf_token_capable),