mmap_file

Function mmap_file 

Source
pub fn mmap_file(
    current_task: &CurrentTask,
    file: Option<&FileHandle>,
    protection_flags: ProtectionFlags,
    options: MappingOptions,
) -> Result<(), Errno>
Expand description

Checks whether the current_task is allowed to mmap file or memory using the given ProtectionFlags and MappingOptions. Corresponds to the mmap_file() LSM hook.