Symbol: bpf_token
include/linux/bpf.h
1825
struct bpf_token *token;
include/linux/bpf.h
2855
bool bpf_token_capable(const struct bpf_token *token, int cap);
include/linux/bpf.h
2857
static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token)
include/linux/bpf.h
2862
static inline bool bpf_allow_uninit_stack(const struct bpf_token *token)
include/linux/bpf.h
2867
static inline bool bpf_bypass_spec_v1(const struct bpf_token *token)
include/linux/bpf.h
2874
static inline bool bpf_bypass_spec_v4(const struct bpf_token *token)
include/linux/bpf.h
2903
void bpf_token_inc(struct bpf_token *token);
include/linux/bpf.h
2904
void bpf_token_put(struct bpf_token *token);
include/linux/bpf.h
2906
struct bpf_token *bpf_token_get_from_fd(u32 ufd);
include/linux/bpf.h
2907
int bpf_token_get_info_by_fd(struct bpf_token *token,
include/linux/bpf.h
2911
bool bpf_token_allow_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
include/linux/bpf.h
2912
bool bpf_token_allow_map_type(const struct bpf_token *token, enum bpf_map_type type);
include/linux/bpf.h
2913
bool bpf_token_allow_prog_type(const struct bpf_token *token,
include/linux/bpf.h
3355
static inline bool bpf_token_capable(const struct bpf_token *token, int cap)
include/linux/bpf.h
3360
static inline void bpf_token_inc(struct bpf_token *token)
include/linux/bpf.h
3364
static inline void bpf_token_put(struct bpf_token *token)
include/linux/bpf.h
3368
static inline struct bpf_token *bpf_token_get_from_fd(u32 ufd)
include/linux/bpf.h
3373
static inline int bpf_token_get_info_by_fd(struct bpf_token *token,
include/linux/bpf.h
62
struct bpf_token;
include/linux/lsm_hook_defs.h
445
struct bpf_token *token, bool kernel)
include/linux/lsm_hook_defs.h
448
struct bpf_token *token, bool kernel)
include/linux/lsm_hook_defs.h
450
LSM_HOOK(int, 0, bpf_token_create, struct bpf_token *token, union bpf_attr *attr,
include/linux/lsm_hook_defs.h
452
LSM_HOOK(void, LSM_RET_VOID, bpf_token_free, struct bpf_token *token)
include/linux/lsm_hook_defs.h
453
LSM_HOOK(int, 0, bpf_token_cmd, const struct bpf_token *token, enum bpf_cmd cmd)
include/linux/lsm_hook_defs.h
454
LSM_HOOK(int, 0, bpf_token_capable, const struct bpf_token *token, int cap)
include/linux/security.h
2299
struct bpf_token;
include/linux/security.h
2305
struct bpf_token *token, bool kernel);
include/linux/security.h
2308
struct bpf_token *token, bool kernel);
include/linux/security.h
2310
extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
include/linux/security.h
2312
extern void security_bpf_token_free(struct bpf_token *token);
include/linux/security.h
2313
extern int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
include/linux/security.h
2314
extern int security_bpf_token_capable(const struct bpf_token *token, int cap);
include/linux/security.h
2333
struct bpf_token *token, bool kernel)
include/linux/security.h
2342
struct bpf_token *token, bool kernel)
include/linux/security.h
2350
static inline int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
include/linux/security.h
2356
static inline void security_bpf_token_free(struct bpf_token *token)
include/linux/security.h
2359
static inline int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd)
include/linux/security.h
2364
static inline int security_bpf_token_capable(const struct bpf_token *token, int cap)
kernel/bpf/syscall.c
1244
static int map_check_btf(struct bpf_map *map, struct bpf_token *token,
kernel/bpf/syscall.c
1372
struct bpf_map **mapp, struct bpf_token **tokenp)
kernel/bpf/syscall.c
1375
struct bpf_token *token = NULL;
kernel/bpf/syscall.c
1629
struct bpf_token *token = NULL;
kernel/bpf/syscall.c
2977
struct bpf_token *token = NULL;
kernel/bpf/syscall.c
5570
struct bpf_token *token,
kernel/bpf/syscall.c
5617
struct bpf_token *token = NULL;
kernel/bpf/syscall.c
5649
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
364
static int lsm_bpf_token_alloc(struct bpf_token *token)
security/security.c
5344
struct bpf_token *token, bool kernel)
security/security.c
5372
struct bpf_token *token, bool kernel)
security/security.c
5397
int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
security/security.c
5423
int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd)
security/security.c
5439
int security_bpf_token_capable(const struct bpf_token *token, int cap)
security/security.c
5476
void security_bpf_token_free(struct bpf_token *token)
security/selinux/hooks.c
7282
struct bpf_token *token, bool kernel)
security/selinux/hooks.c
7300
struct bpf_token *token, bool kernel)
security/selinux/hooks.c
7320
static int selinux_bpf_token_create(struct bpf_token *token,
security/selinux/hooks.c
7356
static int selinux_bpf_token_cmd(const struct bpf_token *token,
security/selinux/hooks.c
7378
static int selinux_bpf_token_capable(const struct bpf_token *token, int cap)
security/selinux/include/objsec.h
285
selinux_bpf_token_security(struct bpf_token *token)
tools/testing/selftests/bpf/progs/test_signed_loader_lsm.c
18
struct bpf_token *token, bool kernel)
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)