Change the memory protection of a region.
fn protect(range: Range<usize>, protection: MemProtFlags) -> Result<(), Errno>
The range for which the protection holds. Must be page-aligned.
The new protection.
mprotect(2)