Lines Matching refs:perfsec
6927 struct perf_event_security_struct *perfsec; in selinux_perf_event_alloc() local
6929 perfsec = kzalloc(sizeof(*perfsec), GFP_KERNEL); in selinux_perf_event_alloc()
6930 if (!perfsec) in selinux_perf_event_alloc()
6933 perfsec->sid = current_sid(); in selinux_perf_event_alloc()
6934 event->security = perfsec; in selinux_perf_event_alloc()
6941 struct perf_event_security_struct *perfsec = event->security; in selinux_perf_event_free() local
6944 kfree(perfsec); in selinux_perf_event_free()
6949 struct perf_event_security_struct *perfsec = event->security; in selinux_perf_event_read() local
6952 return avc_has_perm(&selinux_state, sid, perfsec->sid, in selinux_perf_event_read()
6958 struct perf_event_security_struct *perfsec = event->security; in selinux_perf_event_write() local
6961 return avc_has_perm(&selinux_state, sid, perfsec->sid, in selinux_perf_event_write()