bpf_token
struct bpf_token *token;
bool bpf_token_capable(const struct bpf_token *token, int cap);
static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token)
static inline bool bpf_allow_uninit_stack(const struct bpf_token *token)
static inline bool bpf_bypass_spec_v1(const struct bpf_token *token)
static inline bool bpf_bypass_spec_v4(const struct bpf_token *token)
void bpf_token_inc(struct bpf_token *token);
void bpf_token_put(struct bpf_token *token);
struct bpf_token *bpf_token_get_from_fd(u32 ufd);
int bpf_token_get_info_by_fd(struct bpf_token *token,
bool bpf_token_allow_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
bool bpf_token_allow_map_type(const struct bpf_token *token, enum bpf_map_type type);
bool bpf_token_allow_prog_type(const struct bpf_token *token,
static inline bool bpf_token_capable(const struct bpf_token *token, int cap)
static inline void bpf_token_inc(struct bpf_token *token)
static inline void bpf_token_put(struct bpf_token *token)
static inline struct bpf_token *bpf_token_get_from_fd(u32 ufd)
static inline int bpf_token_get_info_by_fd(struct bpf_token *token,
struct bpf_token;
struct bpf_token *token, bool kernel)
struct bpf_token *token, bool kernel)
LSM_HOOK(int, 0, bpf_token_create, struct bpf_token *token, union bpf_attr *attr,
LSM_HOOK(void, LSM_RET_VOID, bpf_token_free, struct bpf_token *token)
LSM_HOOK(int, 0, bpf_token_cmd, const struct bpf_token *token, enum bpf_cmd cmd)
LSM_HOOK(int, 0, bpf_token_capable, const struct bpf_token *token, int cap)
struct bpf_token;
struct bpf_token *token, bool kernel);
struct bpf_token *token, bool kernel);
extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
extern void security_bpf_token_free(struct bpf_token *token);
extern int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
extern int security_bpf_token_capable(const struct bpf_token *token, int cap);
struct bpf_token *token, bool kernel)
struct bpf_token *token, bool kernel)
static inline int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
static inline void security_bpf_token_free(struct bpf_token *token)
static inline int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd)
static inline int security_bpf_token_capable(const struct bpf_token *token, int cap)
static int map_check_btf(struct bpf_map *map, struct bpf_token *token,
struct bpf_token *token = NULL;
struct bpf_token *token = NULL;
struct bpf_token *token,
struct bpf_token *token = NULL;
struct bpf_token *token = NULL;
struct bpf_token *token __free(kfree) = NULL;
bool bpf_token_capable(const struct bpf_token *token, int cap)
int bpf_token_get_info_by_fd(struct bpf_token *token,
struct bpf_token *bpf_token_get_from_fd(u32 ufd)
struct bpf_token *token;
bool bpf_token_allow_cmd(const struct bpf_token *token, enum bpf_cmd cmd)
bool bpf_token_allow_map_type(const struct bpf_token *token, enum bpf_map_type type)
bool bpf_token_allow_prog_type(const struct bpf_token *token,
void bpf_token_inc(struct bpf_token *token)
static void bpf_token_free(struct bpf_token *token)
struct bpf_token *token = container_of(work, struct bpf_token, work);
void bpf_token_put(struct bpf_token *token)
struct bpf_token *token = filp->private_data;
struct bpf_token *token = filp->private_data;
static int lsm_bpf_token_alloc(struct bpf_token *token)
struct bpf_token *token, bool kernel)
struct bpf_token *token, bool kernel)
int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd)
int security_bpf_token_capable(const struct bpf_token *token, int cap)
void security_bpf_token_free(struct bpf_token *token)
struct bpf_token *token, bool kernel)
struct bpf_token *token, bool kernel)
static int selinux_bpf_token_create(struct bpf_token *token,
static int selinux_bpf_token_cmd(const struct bpf_token *token,
static int selinux_bpf_token_capable(const struct bpf_token *token, int cap)
selinux_bpf_token_security(struct bpf_token *token)
int BPF_PROG(token_capable, struct bpf_token *token, int cap)
int BPF_PROG(token_cmd, struct bpf_token *token, enum bpf_cmd cmd)