Lines Matching refs:bpfsec

6698 	struct bpf_security_struct *bpfsec;  in bpf_fd_pass()  local
6705 bpfsec = map->security; in bpf_fd_pass()
6707 sid, bpfsec->sid, SECCLASS_BPF, in bpf_fd_pass()
6713 bpfsec = prog->aux->security; in bpf_fd_pass()
6715 sid, bpfsec->sid, SECCLASS_BPF, in bpf_fd_pass()
6726 struct bpf_security_struct *bpfsec; in selinux_bpf_map() local
6728 bpfsec = map->security; in selinux_bpf_map()
6730 sid, bpfsec->sid, SECCLASS_BPF, in selinux_bpf_map()
6737 struct bpf_security_struct *bpfsec; in selinux_bpf_prog() local
6739 bpfsec = prog->aux->security; in selinux_bpf_prog()
6741 sid, bpfsec->sid, SECCLASS_BPF, in selinux_bpf_prog()
6747 struct bpf_security_struct *bpfsec; in selinux_bpf_map_alloc() local
6749 bpfsec = kzalloc(sizeof(*bpfsec), GFP_KERNEL); in selinux_bpf_map_alloc()
6750 if (!bpfsec) in selinux_bpf_map_alloc()
6753 bpfsec->sid = current_sid(); in selinux_bpf_map_alloc()
6754 map->security = bpfsec; in selinux_bpf_map_alloc()
6761 struct bpf_security_struct *bpfsec = map->security; in selinux_bpf_map_free() local
6764 kfree(bpfsec); in selinux_bpf_map_free()
6769 struct bpf_security_struct *bpfsec; in selinux_bpf_prog_alloc() local
6771 bpfsec = kzalloc(sizeof(*bpfsec), GFP_KERNEL); in selinux_bpf_prog_alloc()
6772 if (!bpfsec) in selinux_bpf_prog_alloc()
6775 bpfsec->sid = current_sid(); in selinux_bpf_prog_alloc()
6776 aux->security = bpfsec; in selinux_bpf_prog_alloc()
6783 struct bpf_security_struct *bpfsec = aux->security; in selinux_bpf_prog_free() local
6786 kfree(bpfsec); in selinux_bpf_prog_free()