Symbol: bpf_token
include/linux/bpf.h
1734
struct bpf_token *token;
include/linux/bpf.h
2732
bool bpf_token_capable(const struct bpf_token *token, int cap);
include/linux/bpf.h
2734
static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token)
include/linux/bpf.h
2739
static inline bool bpf_allow_uninit_stack(const struct bpf_token *token)
include/linux/bpf.h
2744
static inline bool bpf_bypass_spec_v1(const struct bpf_token *token)
include/linux/bpf.h
2751
static inline bool bpf_bypass_spec_v4(const struct bpf_token *token)
include/linux/bpf.h
2777
void bpf_token_inc(struct bpf_token *token);
include/linux/bpf.h
2778
void bpf_token_put(struct bpf_token *token);
include/linux/bpf.h
2780
struct bpf_token *bpf_token_get_from_fd(u32 ufd);
include/linux/bpf.h
2781
int bpf_token_get_info_by_fd(struct bpf_token *token,
include/linux/bpf.h
2785
bool bpf_token_allow_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
include/linux/bpf.h
2786
bool bpf_token_allow_map_type(const struct bpf_token *token, enum bpf_map_type type);
include/linux/bpf.h
2787
bool bpf_token_allow_prog_type(const struct bpf_token *token,
include/linux/bpf.h
3165
static inline bool bpf_token_capable(const struct bpf_token *token, int cap)
include/linux/bpf.h
3170
static inline void bpf_token_inc(struct bpf_token *token)
include/linux/bpf.h
3174
static inline void bpf_token_put(struct bpf_token *token)
include/linux/bpf.h
3178
static inline struct bpf_token *bpf_token_get_from_fd(u32 ufd)
include/linux/bpf.h
3183
static inline int bpf_token_get_info_by_fd(struct bpf_token *token,
include/linux/bpf.h
58
struct bpf_token;
include/linux/lsm_hook_defs.h
435
struct bpf_token *token, bool kernel)
include/linux/lsm_hook_defs.h
438
struct bpf_token *token, bool kernel)
include/linux/lsm_hook_defs.h
440
LSM_HOOK(int, 0, bpf_token_create, struct bpf_token *token, union bpf_attr *attr,
include/linux/lsm_hook_defs.h
442
LSM_HOOK(void, LSM_RET_VOID, bpf_token_free, struct bpf_token *token)
include/linux/lsm_hook_defs.h
443
LSM_HOOK(int, 0, bpf_token_cmd, const struct bpf_token *token, enum bpf_cmd cmd)
include/linux/lsm_hook_defs.h
444
LSM_HOOK(int, 0, bpf_token_capable, const struct bpf_token *token, int cap)
include/linux/security.h
2265
struct bpf_token;
include/linux/security.h
2271
struct bpf_token *token, bool kernel);
include/linux/security.h
2274
struct bpf_token *token, bool kernel);
include/linux/security.h
2276
extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
include/linux/security.h
2278
extern void security_bpf_token_free(struct bpf_token *token);
include/linux/security.h
2279
extern int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
include/linux/security.h
2280
extern int security_bpf_token_capable(const struct bpf_token *token, int cap);
include/linux/security.h
2299
struct bpf_token *token, bool kernel)
include/linux/security.h
2308
struct bpf_token *token, bool kernel)
include/linux/security.h
2316
static inline int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
include/linux/security.h
2322
static inline void security_bpf_token_free(struct bpf_token *token)
include/linux/security.h
2325
static inline int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd)
include/linux/security.h
2330
static inline int security_bpf_token_capable(const struct bpf_token *token, int cap)
kernel/bpf/syscall.c
1245
static int map_check_btf(struct bpf_map *map, struct bpf_token *token,
kernel/bpf/syscall.c
1372
struct bpf_token *token = NULL;
kernel/bpf/syscall.c
2876
struct bpf_token *token = NULL;
kernel/bpf/syscall.c
5428
struct bpf_token *token,
kernel/bpf/syscall.c
5475
struct bpf_token *token = NULL;
kernel/bpf/syscall.c
5507
struct bpf_token *token = NULL;
kernel/bpf/token.c
114
struct bpf_token *token __free(kfree) = NULL;
kernel/bpf/token.c
17
bool bpf_token_capable(const struct bpf_token *token, int cap)
kernel/bpf/token.c
197
int bpf_token_get_info_by_fd(struct bpf_token *token,
kernel/bpf/token.c
220
struct bpf_token *bpf_token_get_from_fd(u32 ufd)
kernel/bpf/token.c
223
struct bpf_token *token;
kernel/bpf/token.c
236
bool bpf_token_allow_cmd(const struct bpf_token *token, enum bpf_cmd cmd)
kernel/bpf/token.c
245
bool bpf_token_allow_map_type(const struct bpf_token *token, enum bpf_map_type type)
kernel/bpf/token.c
253
bool bpf_token_allow_prog_type(const struct bpf_token *token,
kernel/bpf/token.c
30
void bpf_token_inc(struct bpf_token *token)
kernel/bpf/token.c
35
static void bpf_token_free(struct bpf_token *token)
kernel/bpf/token.c
44
struct bpf_token *token = container_of(work, struct bpf_token, work);
kernel/bpf/token.c
49
void bpf_token_put(struct bpf_token *token)
kernel/bpf/token.c
63
struct bpf_token *token = filp->private_data;
kernel/bpf/token.c
71
struct bpf_token *token = filp->private_data;
security/security.c
339
static int lsm_bpf_token_alloc(struct bpf_token *token)
security/security.c
5222
struct bpf_token *token, bool kernel)
security/security.c
5250
struct bpf_token *token, bool kernel)
security/security.c
5275
int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
security/security.c
5301
int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd)
security/security.c
5317
int security_bpf_token_capable(const struct bpf_token *token, int cap)
security/security.c
5354
void security_bpf_token_free(struct bpf_token *token)
security/selinux/hooks.c
7154
struct bpf_token *token, bool kernel)
security/selinux/hooks.c
7172
struct bpf_token *token, bool kernel)
security/selinux/hooks.c
7192
static int selinux_bpf_token_create(struct bpf_token *token,
security/selinux/hooks.c
7228
static int selinux_bpf_token_cmd(const struct bpf_token *token,
security/selinux/hooks.c
7250
static int selinux_bpf_token_capable(const struct bpf_token *token, int cap)
security/selinux/include/objsec.h
276
selinux_bpf_token_security(struct bpf_token *token)
tools/testing/selftests/bpf/progs/token_lsm.c
15
int BPF_PROG(token_capable, struct bpf_token *token, int cap)
tools/testing/selftests/bpf/progs/token_lsm.c
25
int BPF_PROG(token_cmd, struct bpf_token *token, enum bpf_cmd cmd)