pub fn file_mprotect(
current_task: &CurrentTask,
range: &Range<UserAddress>,
mapping: &Mapping,
prot: ProtectionFlags,
) -> Result<(), Errno>Expand description
Checks whether current_task is allowed to request setting the memory protection of
mapping to prot.
Corresponds to the file_mprotect LSM hook.