Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 12 files:

Smatch caller information:

kernel/bpf/arraymap.c bpf_bypass_spec_v1() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0
PARAM_VALUE 1 cap 38
DATA_SOURCE 0 token $0

net/core/filter.c bpf_sk_base_func_proto() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 38

net/core/filter.c cg_skb_is_valid_access() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 39

net/core/filter.c cg_skb_is_valid_access() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 39

kernel/bpf/syscall.c bpf_btf_get_fd_by_id() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 21
BUF_SIZE 0 token s32min-(-2),0-s32max
BUF_SIZE 0 token s32min-(-2),0-s32max

kernel/bpf/syscall.c bpf_btf_load() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 39
BUF_SIZE 0 token s32min-(-2),0-s32max
BUF_SIZE 0 token s32min-(-2),0-s32max

kernel/bpf/syscall.c bpf_prog_attach_check_attach_type() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 12

kernel/bpf/syscall.c bpf_prog_load() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 39
BUF_SIZE 0 token s32min-(-2),0-s32max
BUF_SIZE 0 token s32min-(-2),0-s32max

kernel/bpf/syscall.c bpf_prog_load() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 12
BUF_SIZE 0 token s32min-(-2),0-s32max
BUF_SIZE 0 token s32min-(-2),0-s32max

kernel/bpf/syscall.c bpf_prog_load() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 38
BUF_SIZE 0 token s32min-(-2),0-s32max
BUF_SIZE 0 token s32min-(-2),0-s32max

kernel/bpf/syscall.c map_check_btf() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 39
BUF_SIZE 0 token s32min-(-2),0-s32max
BUF_SIZE 0 token s32min-(-2),0-s32max
DATA_SOURCE 0 token $1

kernel/bpf/syscall.c map_create_alloc() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 39
BUF_SIZE 0 token s32min-(-2),0-s32max
BUF_SIZE 0 token s32min-(-2),0-s32max

kernel/bpf/syscall.c map_create_alloc() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 39
BUF_SIZE 0 token s32min-(-2),0-s32max
BUF_SIZE 0 token s32min-(-2),0-s32max

kernel/bpf/syscall.c map_create_alloc() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 12
BUF_SIZE 0 token s32min-(-2),0-s32max
BUF_SIZE 0 token s32min-(-2),0-s32max

kernel/bpf/syscall.c syscall_prog_func_proto() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 38

drivers/media/rc/bpf-lirc.c lirc_mode2_func_proto() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 38

kernel/bpf/verifier.c bpf_allow_ptr_leaks() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 38
DATA_SOURCE 0 token $0

kernel/bpf/verifier.c bpf_allow_uninit_stack() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 38
DATA_SOURCE 0 token $0

kernel/bpf/verifier.c bpf_bypass_spec_v1() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 38
DATA_SOURCE 0 token $0

kernel/bpf/verifier.c bpf_bypass_spec_v4() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 38
DATA_SOURCE 0 token $0

kernel/trace/bpf_trace.c bpf_tracing_func_proto() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 21

kernel/bpf/core.c bpf_jit_blinding_enabled() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 39
RX_PATH
TASK_NOT_RUNNING

kernel/bpf/core.c bpf_prog_kallsyms_add() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 39

kernel/bpf/helpers.c bpf_base_func_proto() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 1 cap 39

kernel/bpf/helpers.c bpf_base_func_proto() -> bpf_token_capable()

Type Parameter Key Value
PARAM_VALUE 0 token 0,4096-ptr_max
PARAM_VALUE 1 cap 38