Searched refs:bpf_token (Results 1 – 7 of 7) sorted by relevance
| /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 | 2264 struct bpf_token; 2270 struct bpf_token *token, bool kernel); 2273 struct bpf_token *token, bool kernel); 2275 extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, 2277 extern void security_bpf_token_free(struct bpf_token *token); 2278 extern int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd); 2279 extern int security_bpf_token_capable(const struct bpf_token *token, int cap); 2298 struct bpf_token *token, bool kernel) in security_bpf_map_create() 2307 struct bpf_token *token, bool kernel) in security_bpf_prog_load() 2315 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 | 58 struct bpf_token; 1710 struct bpf_token *token; 1883 struct bpf_token { struct 2600 bool bpf_token_capable(const struct bpf_token *token, int cap); 2602 static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token) in bpf_allow_ptr_leaks() 2607 static inline bool bpf_allow_uninit_stack(const struct bpf_token *token) in bpf_allow_uninit_stack() 2612 static inline bool bpf_bypass_spec_v1(const struct bpf_token *token) in bpf_bypass_spec_v1() 2619 static inline bool bpf_bypass_spec_v4(const struct bpf_token *token) in bpf_bypass_spec_v4() 2645 void bpf_token_inc(struct bpf_token *token); 2646 void bpf_token_put(struct bpf_token *token); [all …]
|
| H A D | lsm_hook_defs.h | 435 struct bpf_token *token, bool kernel) 438 struct bpf_token *token, bool kernel) 440 LSM_HOOK(int, 0, bpf_token_create, struct bpf_token *token, union bpf_attr *attr, 442 LSM_HOOK(void, LSM_RET_VOID, bpf_token_free, struct bpf_token *token) 443 LSM_HOOK(int, 0, bpf_token_cmd, const struct bpf_token *token, enum bpf_cmd cmd) 444 LSM_HOOK(int, 0, bpf_token_capable, const struct bpf_token *token, int cap)
|
| /linux/security/ |
| H A D | security.c | 338 static int lsm_bpf_token_alloc(struct bpf_token *token) in lsm_bpf_token_alloc() 5221 struct bpf_token *token, bool kernel) in security_bpf_map_create() 5249 struct bpf_token *token, bool kernel) in security_bpf_prog_load() 5274 int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in security_bpf_token_create() 5300 int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd) in security_bpf_token_cmd() 5316 int security_bpf_token_capable(const struct bpf_token *token, int cap) in security_bpf_token_capable() 5353 void security_bpf_token_free(struct bpf_token *token) in security_bpf_token_free()
|
| /linux/kernel/bpf/ |
| H A D | syscall.c | 1247 static int map_check_btf(struct bpf_map *map, struct bpf_token *token, in map_check_btf() 1379 struct bpf_token *token = NULL; in map_create() 2875 struct bpf_token *token = NULL; in bpf_prog_load() 5385 struct bpf_token *token, in token_get_info_by_fd() 5432 struct bpf_token *token = NULL; in bpf_btf_load() 5464 struct bpf_token *token = NULL; in bpf_btf_get_fd_by_id()
|
| /linux/security/selinux/ |
| H A D | hooks.c | 7128 struct bpf_token *token, bool kernel) in selinux_bpf_map_create() 7139 struct bpf_token *token, bool kernel) in selinux_bpf_prog_load() 7149 static int selinux_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in selinux_bpf_token_create()
|