Searched refs:perfsec (Results 1 – 1 of 1) sorted by relevance
6901 struct perf_event_security_struct *perfsec; in selinux_perf_event_alloc() local6903 perfsec = kzalloc(sizeof(*perfsec), GFP_KERNEL); in selinux_perf_event_alloc()6904 if (!perfsec) in selinux_perf_event_alloc()6907 perfsec->sid = current_sid(); in selinux_perf_event_alloc()6908 event->security = perfsec; in selinux_perf_event_alloc()6915 struct perf_event_security_struct *perfsec = event->security; in selinux_perf_event_free() local6918 kfree(perfsec); in selinux_perf_event_free()6923 struct perf_event_security_struct *perfsec = event->security; in selinux_perf_event_read() local6926 return avc_has_perm(sid, perfsec->sid, in selinux_perf_event_read()6932 struct perf_event_security_struct *perfsec = event->security; in selinux_perf_event_write() local[all …]