| /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() 200 int bpf_token_get_info_by_fd(struct bpf_token *toke in bpf_token_get_info_by_fd() [all...] |
| H A D | syscall.c | 1268 static int map_check_btf(struct bpf_map *map, struct bpf_token *token, in map_check_btf() 1402 struct bpf_map **mapp, struct bpf_token **tokenp) in map_create_alloc() 1405 struct bpf_token *token = NULL; in map_create_alloc() 1652 struct bpf_token *token = NULL; in map_create() 2957 struct bpf_token *token = NULL; in BTF_ID_LIST_GLOBAL_SINGLE() 5589 struct bpf_token *token, in bpf_btf_load() 5636 struct bpf_token *token = NULL; in bpf_btf_get_fd_by_id() 5668 struct bpf_token *token = NULL; in bpf_task_fd_query_copy()
|
| /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 | 2329 struct bpf_token; in security_bpf_prog() 2335 struct bpf_token *token, bool kernel); in security_bpf_map_create() 2338 struct bpf_token *token, bool kernel); in security_bpf_map_free() 2340 extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, 2342 extern void security_bpf_token_free(struct bpf_token *token); in security_bpf_prog_load() 2343 extern int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd); in security_bpf_prog_load() 2344 extern int security_bpf_token_capable(const struct bpf_token *token, int cap); in security_bpf_prog_load() 2363 struct bpf_token *token, bool kernel) 2372 struct bpf_token *token, bool kernel) 2380 static inline int security_bpf_token_create(struct bpf_token *toke [all...] |
| H A D | bpf.h | 63 struct bpf_token; 1946 struct bpf_token *token; 2169 struct bpf_token { 3047 bool bpf_token_capable(const struct bpf_token *token, int cap); 3049 static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token) 3054 static inline bool bpf_allow_uninit_stack(const struct bpf_token *token) 3059 static inline bool bpf_bypass_spec_v1(const struct bpf_token *token) 3066 static inline bool bpf_bypass_spec_v4(const struct bpf_token *token) 3095 void bpf_token_inc(struct bpf_token *token); 3096 void bpf_token_put(struct bpf_token *toke 2075 struct bpf_token { global() struct 2076 workbpf_token global() argument 2077 refcntbpf_token global() argument 2078 usernsbpf_token global() argument 2079 allowed_cmdsbpf_token global() argument 2080 allowed_mapsbpf_token global() argument 2081 allowed_progsbpf_token global() argument 2082 allowed_attachsbpf_token global() argument 2084 securitybpf_token global() argument [all...] |
| H A D | lsm_hook_defs.h | 449 struct bpf_token *token, bool kernel) 452 struct bpf_token *token, bool kernel) 454 LSM_HOOK(int, 0, bpf_token_create, struct bpf_token *token, union bpf_attr *attr, 456 LSM_HOOK(void, LSM_RET_VOID, bpf_token_free, struct bpf_token *token) 457 LSM_HOOK(int, 0, bpf_token_cmd, const struct bpf_token *token, enum bpf_cmd cmd) 458 LSM_HOOK(int, 0, bpf_token_capable, const struct bpf_token *token, int cap)
|
| /linux/security/selinux/include/ |
| H A D | objsec.h | 293 selinux_bpf_token_security(struct bpf_token *token) in selinux_bpf_token_security()
|
| /linux/security/ |
| H A D | security.c | 358 * lsm_bpf_token_alloc - allocate a composite bpf_token blob 359 * @token: the bpf_token that needs a blob 361 * Allocate the bpf_token blob for all the modules 365 static int lsm_bpf_token_alloc(struct bpf_token *token) in lsm_bpf_token_alloc() 5422 struct bpf_token *token, bool kernel) in security_bpf_token_cmd() 5450 struct bpf_token *token, bool kernel) in security_bpf_map_free() 5475 int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in security_bpf_token_free() 5501 int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd) 5517 int security_bpf_token_capable(const struct bpf_token *token, int cap) in security_bdev_alloc() 5554 void security_bpf_token_free(struct bpf_token *toke [all...] |
| /linux/security/selinux/ |
| H A D | hooks.c | 7400 struct bpf_token *token, bool kernel) in selinux_bpf_map_create() 7418 struct bpf_token *token, bool kernel) in selinux_bpf_prog_load() 7438 static int selinux_bpf_token_create(struct bpf_token *token, in selinux_bpf_token_create() 7476 static int selinux_bpf_token_cmd(const struct bpf_token *token, in selinux_bpf_token_cmd() 7498 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 | 286 struct bpf_token *token, bool kernel)
|