Searched refs:bpf_token (Results 1 – 8 of 8) sorted by relevance
| /linux/kernel/bpf/ |
| H A D | token.c | 17 bool bpf_token_capable(const struct bpf_token *token, int cap) in bpf_token_capable() 30 void bpf_token_inc(struct bpf_token *token) in bpf_token_inc() 35 static void bpf_token_free(struct bpf_token *token) in bpf_token_free() 44 struct bpf_token *token = container_of(work, struct bpf_token, work); in bpf_token_put_deferred() 49 void bpf_token_put(struct bpf_token *token) in bpf_token_put() 63 struct bpf_token *token = filp->private_data; in bpf_token_release() 71 struct bpf_token *token = filp->private_data; in bpf_token_show_fdinfo() 114 struct bpf_token *token __free(kfree) = NULL; in bpf_token_create() 197 int bpf_token_get_info_by_fd(struct bpf_token *token, in bpf_token_get_info_by_fd() 220 struct bpf_token *bpf_token_get_from_fd(u32 ufd) in bpf_token_get_from_fd() [all …]
|
| H A D | syscall.c | 1255 static int map_check_btf(struct bpf_map *map, struct bpf_token *token, in map_check_btf() 1383 struct bpf_map **mapp, struct bpf_token **tokenp) in map_create_alloc() 1386 struct bpf_token *token = NULL; in map_create_alloc() 1633 struct bpf_token *token = NULL; in map_create() 2922 struct bpf_token *token = NULL; in BTF_ID_LIST_GLOBAL_SINGLE() 5519 struct bpf_token *token, in token_get_info_by_fd() 5566 struct bpf_token *token = NULL; in bpf_btf_load() 5598 struct bpf_token *token = NULL; in bpf_btf_get_fd_by_id()
|
| /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 | bpf.h | 62 struct bpf_token; 1823 struct bpf_token *token; 2036 struct bpf_token { struct 2860 bool bpf_token_capable(const struct bpf_token *token, int cap); 2862 static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token) in bpf_allow_ptr_leaks() 2867 static inline bool bpf_allow_uninit_stack(const struct bpf_token *token) in bpf_allow_uninit_stack() 2872 static inline bool bpf_bypass_spec_v1(const struct bpf_token *token) in bpf_bypass_spec_v1() 2879 static inline bool bpf_bypass_spec_v4(const struct bpf_token *token) in bpf_bypass_spec_v4() 2908 void bpf_token_inc(struct bpf_token *token); 2909 void bpf_token_put(struct bpf_token *token); [all …]
|
| /linux/security/selinux/include/ |
| H A D | objsec.h | 285 selinux_bpf_token_security(struct bpf_token *token) in selinux_bpf_token_security()
|
| /linux/security/ |
| H A D | security.c | 357 * lsm_bpf_token_alloc - allocate a composite bpf_token blob 358 * @token: the bpf_token that needs a blob 360 * Allocate the bpf_token blob for all the modules 364 static int lsm_bpf_token_alloc(struct bpf_token *token) in lsm_bpf_token_alloc() 5343 struct bpf_token *token, bool kernel) in security_bpf_map_create() 5371 struct bpf_token *token, bool kernel) in security_bpf_prog_load() 5396 int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, 5422 int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd) 5438 int security_bpf_token_capable(const struct bpf_token *token, int cap) 5475 void security_bpf_token_free(struct bpf_token *toke [all...] |
| /linux/security/selinux/ |
| H A D | hooks.c | 7289 struct bpf_token *token, bool kernel) in selinux_bpf_map_create() 7307 struct bpf_token *token, bool kernel) in selinux_bpf_prog_load() 7327 static int selinux_bpf_token_create(struct bpf_token *token, in selinux_bpf_token_create() 7363 static int selinux_bpf_token_cmd(const struct bpf_token *token, in selinux_bpf_token_cmd() 7385 static int selinux_bpf_token_capable(const struct bpf_token *token, int cap) in selinux_bpf_token_capable()
|
| /linux/Documentation/bpf/ |
| H A D | signing.rst | 283 struct bpf_token *token, bool kernel)
|