haiku/headers/private/kernel/vm
Jérôme Duval 45872f7f9c kernel/vm: restrict permission changes on shared file-mapped areas
a protection_max attribute is added in VMArea.
a read-only opened file already can't be mapped shared read-write at the moment,
but can later be changed to read-write with mprotect() or set_area_protection().
When creating the VMArea, the actual maximum protection is stored in the area,
so that it can be checked when needed.
this fixes a VM TODO.

Change-Id: I33b144c192034eeb059f1dede5dbef5af947280d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3804
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-23 17:40:31 +00:00
..
VMAddressSpace.h kernel/vm: Introduce and use VMAddressSpace::AreaRangeIterator. 2020-05-30 02:29:41 +00:00
VMArea.h kernel/vm: restrict permission changes on shared file-mapped areas 2021-03-23 17:40:31 +00:00
VMCache.h kernel/vm: Add discard_address_range that discards pages. 2020-08-01 19:23:27 +00:00
VMTranslationMap.h kernel: Whitespace cleanup only. 2020-06-13 23:24:27 +02:00
vm.h implement mlock(), munlock() 2020-12-03 07:58:05 +00:00
vm_page.h
vm_priv.h
vm_types.h