file_permission

Function file_permission 

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

Checks whether the current_task has the specified permission_flags to the file. Corresponds to the file_permission() LSM hook.