Searched refs:bpf_token (Results 1 – 8 of 8) sorted by relevance
/linux/kernel/bpf/ |
H A D | token.c | 16 bool bpf_token_capable(const struct bpf_token *token, int cap) in bpf_token_capable() 29 void bpf_token_inc(struct bpf_token *token) in bpf_token_inc() 34 static void bpf_token_free(struct bpf_token *token) in bpf_token_free() 43 struct bpf_token *token = container_of(work, struct bpf_token, work); in bpf_token_put_deferred() 48 void bpf_token_put(struct bpf_token *token) in bpf_token_put() 62 struct bpf_token *token = filp->private_data; in bpf_token_release() 70 struct bpf_token *token = filp->private_data; in bpf_token_show_fdinfo() 114 struct bpf_token *token = NULL; in bpf_token_create() 213 struct bpf_token *bpf_token_get_from_fd(u32 ufd) in bpf_token_get_from_fd() 216 struct bpf_token *token; in bpf_token_get_from_fd() [all …]
|
H A D | syscall.c | 1179 static int map_check_btf(struct bpf_map *map, struct bpf_token *token, in map_check_btf() 1308 struct bpf_token *token = NULL; in map_create() 2740 struct bpf_token *token = NULL; in bpf_prog_load() 5091 struct bpf_token *token = NULL; in bpf_btf_load()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | token_lsm.c | 15 int BPF_PROG(token_capable, struct bpf_token *token, int cap) in BPF_PROG() 25 int BPF_PROG(token_cmd, struct bpf_token *token, enum bpf_cmd cmd) in BPF_PROG()
|
/linux/include/linux/ |
H A D | security.h | 2239 struct bpf_token; 2245 struct bpf_token *token); 2248 struct bpf_token *token); 2250 extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, 2252 extern void security_bpf_token_free(struct bpf_token *token); 2253 extern int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd); 2254 extern int security_bpf_token_capable(const struct bpf_token *token, int cap); 2273 struct bpf_token *token) in security_bpf_map_create() 2282 struct bpf_token *token) in security_bpf_prog_load() 2290 static inline int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in security_bpf_token_create() [all …]
|
H A D | bpf.h | 56 struct bpf_token; 1564 struct bpf_token *token; 1730 struct bpf_token { struct 2390 bool bpf_token_capable(const struct bpf_token *token, int cap); 2392 static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token) in bpf_allow_ptr_leaks() 2397 static inline bool bpf_allow_uninit_stack(const struct bpf_token *token) in bpf_allow_uninit_stack() 2402 static inline bool bpf_bypass_spec_v1(const struct bpf_token *token) in bpf_bypass_spec_v1() 2407 static inline bool bpf_bypass_spec_v4(const struct bpf_token *token) in bpf_bypass_spec_v4() 2430 void bpf_token_inc(struct bpf_token *token); 2431 void bpf_token_put(struct bpf_token *token); [all …]
|
H A D | lsm_hook_defs.h | 434 struct bpf_token *token) 437 struct bpf_token *token) 439 LSM_HOOK(int, 0, bpf_token_create, struct bpf_token *token, union bpf_attr *attr, 441 LSM_HOOK(void, LSM_RET_VOID, bpf_token_free, struct bpf_token *token) 442 LSM_HOOK(int, 0, bpf_token_cmd, const struct bpf_token *token, enum bpf_cmd cmd) 443 LSM_HOOK(int, 0, bpf_token_capable, const struct bpf_token *token, int cap)
|
/linux/security/ |
H A D | security.c | 5680 struct bpf_token *token) in security_bpf_map_create() 5698 struct bpf_token *token) in security_bpf_prog_load() 5714 int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in security_bpf_token_create() 5731 int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd) in security_bpf_token_cmd() 5747 int security_bpf_token_capable(const struct bpf_token *token, int cap) in security_bpf_token_capable() 5780 void security_bpf_token_free(struct bpf_token *token) in security_bpf_token_free()
|
/linux/security/selinux/ |
H A D | hooks.c | 6936 struct bpf_token *token) in selinux_bpf_map_create() 6959 struct bpf_token *token) in selinux_bpf_prog_load() 6981 static int selinux_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in selinux_bpf_token_create() 6996 static void selinux_bpf_token_free(struct bpf_token *token) in selinux_bpf_token_free()
|