[][src]Function sunrise_libuser::syscalls::set_process_memory_permission

pub fn set_process_memory_permission(
    proc_hnd: &Process,
    addr: usize,
    size: usize,
    perms: MemoryPermissions
) -> Result<(), KernelError>

Change permission of a page-aligned memory region. Acceptable permissions are ---, r-- and rw-. In other words, it is not allowed to set the executable bit, nor is it acceptable to use write-only permissions.

This can only be used on memory regions with the process_permission_change_allowed state.

Errors