Home
last modified time | relevance | path

Searched refs:bpf_token (Results 1 – 9 of 9) sorted by relevance

/linux/kernel/bpf/
H A Dtoken.c16 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 int bpf_token_get_info_by_fd(struct bpf_token *token, in bpf_token_get_info_by_fd()
236 struct bpf_token *bpf_token_get_from_fd(u32 ufd) in bpf_token_get_from_fd()
[all …]
H A Dsyscall.c1246 static int map_check_btf(struct bpf_map *map, struct bpf_token *token, in map_check_btf()
1378 struct bpf_token *token = NULL; in map_create()
2864 struct bpf_token *token = NULL; in bpf_prog_load()
5370 struct bpf_token *token, in token_get_info_by_fd()
5417 struct bpf_token *token = NULL; in bpf_btf_load()
5449 struct bpf_token *token = NULL; in bpf_btf_get_fd_by_id()
/linux/tools/testing/selftests/bpf/progs/
H A Dtoken_lsm.c15 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 Dsecurity.h2267 struct bpf_token;
2273 struct bpf_token *token, bool kernel);
2276 struct bpf_token *token, bool kernel);
2278 extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
2280 extern void security_bpf_token_free(struct bpf_token *token);
2281 extern int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
2282 extern int security_bpf_token_capable(const struct bpf_token *token, int cap);
2301 struct bpf_token *token, bool kernel) in security_bpf_map_create()
2310 struct bpf_token *token, bool kernel) in security_bpf_prog_load()
2318 static inline int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in security_bpf_token_create()
[all …]
H A Dbpf.h58 struct bpf_token;
1678 struct bpf_token *token;
1851 struct bpf_token { struct
2557 bool bpf_token_capable(const struct bpf_token *token, int cap);
2559 static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token) in bpf_allow_ptr_leaks()
2564 static inline bool bpf_allow_uninit_stack(const struct bpf_token *token) in bpf_allow_uninit_stack()
2569 static inline bool bpf_bypass_spec_v1(const struct bpf_token *token) in bpf_bypass_spec_v1()
2576 static inline bool bpf_bypass_spec_v4(const struct bpf_token *token) in bpf_bypass_spec_v4()
2602 void bpf_token_inc(struct bpf_token *token);
2603 void bpf_token_put(struct bpf_token *token);
[all …]
H A Dlsm_hook_defs.h435 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/selinux/include/
H A Dobjsec.h263 selinux_bpf_token_security(struct bpf_token *token) in selinux_bpf_token_security()
/linux/security/
H A Dsecurity.c871 static int lsm_bpf_token_alloc(struct bpf_token *token) in lsm_bpf_token_alloc()
5768 struct bpf_token *token, bool kernel) in security_bpf_map_create()
5796 struct bpf_token *token, bool kernel) in security_bpf_prog_load()
5821 int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in security_bpf_token_create()
5847 int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd) in security_bpf_token_cmd()
5863 int security_bpf_token_capable(const struct bpf_token *token, int cap) in security_bpf_token_capable()
5900 void security_bpf_token_free(struct bpf_token *token) in security_bpf_token_free()
/linux/security/selinux/
H A Dhooks.c7106 struct bpf_token *token, bool kernel) in selinux_bpf_map_create()
7117 struct bpf_token *token, bool kernel) in selinux_bpf_prog_load()
7127 static int selinux_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in selinux_bpf_token_create()