Lines Matching refs:bpfsec
6773 struct bpf_security_struct *bpfsec;
6780 bpfsec = map->security;
6781 ret = avc_has_perm(sid, bpfsec->sid, SECCLASS_BPF,
6787 bpfsec = prog->aux->security;
6788 ret = avc_has_perm(sid, bpfsec->sid, SECCLASS_BPF,
6799 struct bpf_security_struct *bpfsec;
6801 bpfsec = map->security;
6802 return avc_has_perm(sid, bpfsec->sid, SECCLASS_BPF,
6809 struct bpf_security_struct *bpfsec;
6811 bpfsec = prog->aux->security;
6812 return avc_has_perm(sid, bpfsec->sid, SECCLASS_BPF,
6818 struct bpf_security_struct *bpfsec;
6820 bpfsec = kzalloc(sizeof(*bpfsec), GFP_KERNEL);
6821 if (!bpfsec)
6824 bpfsec->sid = current_sid();
6825 map->security = bpfsec;
6832 struct bpf_security_struct *bpfsec = map->security;
6835 kfree(bpfsec);
6840 struct bpf_security_struct *bpfsec;
6842 bpfsec = kzalloc(sizeof(*bpfsec), GFP_KERNEL);
6843 if (!bpfsec)
6846 bpfsec->sid = current_sid();
6847 aux->security = bpfsec;
6854 struct bpf_security_struct *bpfsec = aux->security;
6857 kfree(bpfsec);