check_perf_event_open_access

Function check_perf_event_open_access 

Source
pub fn check_perf_event_open_access(
    current_task: &CurrentTask,
    target_task_type: TargetTaskType<'_>,
    attr: &perf_event_attr,
    event_type: PerfEventType,
) -> Result<(), Errno>
Expand description

Checks whether current_task has the correct permissions to monitor the given target task or tasks. Corresponds to the perf_event_open LSM hook.