check_bpf_prog_access

Function check_bpf_prog_access 

Source
pub fn check_bpf_prog_access(
    current_task: &CurrentTask,
    bpf_program: &Program,
) -> Result<(), Errno>
Expand description

Checks whether current_task can create a bpf_program. This hook is called from the sys_bpf() syscall when the kernel tries to generate and return a file descriptor for programs. Corresponds to the bpf_prog() LSM hook.