Searched refs:bpf_token (Results 1 – 8 of 8) sorted by relevance
| /linux-6.15/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 | 1212 static int map_check_btf(struct bpf_map *map, struct bpf_token *token, in map_check_btf() 1342 struct bpf_token *token = NULL; in map_create() 2764 struct bpf_token *token = NULL; in bpf_prog_load() 5116 struct bpf_token *token = NULL; in bpf_btf_load() 5148 struct bpf_token *token = NULL; in bpf_btf_get_fd_by_id()
|
| /linux-6.15/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-6.15/include/linux/ |
| H A D | security.h | 2250 struct bpf_token; 2256 struct bpf_token *token, bool kernel); 2259 struct bpf_token *token, bool kernel); 2261 extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, 2263 extern void security_bpf_token_free(struct bpf_token *token); 2264 extern int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd); 2265 extern int security_bpf_token_capable(const struct bpf_token *token, int cap); 2284 struct bpf_token *token, bool kernel) in security_bpf_map_create() 2293 struct bpf_token *token, bool kernel) in security_bpf_prog_load() 2307 static inline void security_bpf_token_free(struct bpf_token *token) in security_bpf_token_free() [all …]
|
| H A D | bpf.h | 57 struct bpf_token; 1595 struct bpf_token *token; 1761 struct bpf_token { struct 2444 bool bpf_token_capable(const struct bpf_token *token, int cap); 2484 void bpf_token_inc(struct bpf_token *token); 2485 void bpf_token_put(struct bpf_token *token); 2487 struct bpf_token *bpf_token_get_from_fd(u32 ufd); 2491 bool bpf_token_allow_prog_type(const struct bpf_token *token, 2873 static inline void bpf_token_inc(struct bpf_token *token) in bpf_token_inc() 2877 static inline void bpf_token_put(struct bpf_token *token) in bpf_token_put() [all …]
|
| H A D | lsm_hook_defs.h | 433 struct bpf_token *token, bool kernel) 436 struct bpf_token *token, bool kernel) 438 LSM_HOOK(int, 0, bpf_token_create, struct bpf_token *token, union bpf_attr *attr, 440 LSM_HOOK(void, LSM_RET_VOID, bpf_token_free, struct bpf_token *token) 441 LSM_HOOK(int, 0, bpf_token_cmd, const struct bpf_token *token, enum bpf_cmd cmd) 442 LSM_HOOK(int, 0, bpf_token_capable, const struct bpf_token *token, int cap)
|
| /linux-6.15/security/ |
| H A D | security.c | 5685 struct bpf_token *token, bool kernel) in security_bpf_map_create() 5704 struct bpf_token *token, bool kernel) in security_bpf_prog_load() 5720 int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in security_bpf_token_create() 5737 int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd) in security_bpf_token_cmd() 5753 int security_bpf_token_capable(const struct bpf_token *token, int cap) in security_bpf_token_capable() 5786 void security_bpf_token_free(struct bpf_token *token) in security_bpf_token_free()
|
| /linux-6.15/security/selinux/ |
| H A D | hooks.c | 7000 struct bpf_token *token, bool kernel) in selinux_bpf_map_create() 7023 struct bpf_token *token, bool kernel) in selinux_bpf_prog_load() 7045 static int selinux_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in selinux_bpf_token_create() 7060 static void selinux_bpf_token_free(struct bpf_token *token) in selinux_bpf_token_free()
|