Add mimmutable(2) system call which locks the permissions (PROT_*) of
authorderaadt <deraadt@openbsd.org>
Fri, 7 Oct 2022 14:59:39 +0000 (14:59 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 7 Oct 2022 14:59:39 +0000 (14:59 +0000)
commit8c7187e8f9910ee01579e69c0d0a30f2bd8a8769
treef40a51d277ce2c8b612face16d12433718bd0f8d
parent21a4cd7f211a6e7bd6be1d689aeb247620f38d66
Add mimmutable(2) system call which locks the permissions (PROT_*) of
memory mappings so they cannot be changed by a later mmap(), mprotect(),
or munmap(), which will error with EPERM instead.
ok kettenis
12 files changed:
sys/arch/mips64/mips64/trap.c
sys/kern/exec_subr.c
sys/kern/kern_exec.c
sys/kern/kern_pledge.c
sys/kern/kern_resource.c
sys/kern/syscalls.master
sys/sys/mman.h
sys/uvm/uvm_extern.h
sys/uvm/uvm_io.c
sys/uvm/uvm_map.c
sys/uvm/uvm_map.h
sys/uvm/uvm_mmap.c