check_file_lock_access

Function check_file_lock_access 

Source
pub fn check_file_lock_access(
    current_task: &CurrentTask,
    file: &FileObject,
) -> Result<(), Errno>
Expand description

This hook is called by the flock syscall. Returns whether current_task can perform a lock operation on the given file.

See also check_file_fcntl_access() for lock permission checks performed after an fcntl lock request.

Corresponds to the file_lock() LSM hook.