pub fn check_bpf_access<Attr: FromBytes>(
current_task: &CurrentTask,
cmd: bpf_cmd,
attr: &Attr,
attr_size: u32,
) -> Result<(), Errno>Expand description
Checks whether current_task can perform the given bpf cmd. This hook is called from the
sys_bpf() syscall after the attribute is copied into the kernel.
Corresponds to the bpf() LSM hook.