Expand description
Permission bits. MAP is what distinguishes “mapped with no access” from
“not mapped at all” — the two produce different faults, and a guest can
observe the difference (mprotect(PROT_NONE) succeeds on mapped memory and
fails on unmapped memory).
Constants§
- EXEC
- INIT
- The byte holds a defined value. Cleared bytes read as a fault under
Mmu::check_uninit, which is how use-of-uninitialized-memory is caught. - MAP
- The byte belongs to a mapped region.
- NONE
- READ
- READ_
WATCH - READ_
WRITE - RW_INIT
- Conventional permissions for a freshly mapped, zero-filled region.
- RX_INIT
- Conventional permissions for loaded code.
- WRITE
- WRITE_
WATCH