check_perf_event_write_access

Function check_perf_event_write_access 

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

Checks whether current_task has the correct permissions to write to the given perf_event_file. Corresponds to the perf_event_write LSM hook.