pub fn check_perf_event_open_access(
current_task: &CurrentTask,
perf_event_open_type: PerfEventOpenType,
) -> Result<(), Errno>Expand description
Checks whether current_task has the correct permissions for the given stage of a
perf_event_open() call. Called by perf_event_open() once for each stage that applies to
the new event.
Corresponds to the perf_event_open LSM hook.