check_perf_event_read_access

Function check_perf_event_read_access 

Source
pub fn check_perf_event_read_access(
    current_task: &CurrentTask,
    perf_event_file: &PerfEventFile,
) -> Result<(), Errno>
Expand description

Checks whether current_task has the correct permissions to read the given perf_event_file Corresponds to the perf_event_read LSM hook.