diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2021-05-23 01:41:12 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-05-24 14:54:05 +0200 |
commit | 08dac1991732db78ce85af228c7a7ae3e7438b35 (patch) | |
tree | eede830c8c7024c7a8d3ad089a953cc9edfb8f63 /vm/vm_debug.c | |
parent | 34ffcb1893ee724d17671b7c388394fb646821bd (diff) | |
download | gnumach-08dac1991732db78ce85af228c7a7ae3e7438b35.tar.gz gnumach-08dac1991732db78ce85af228c7a7ae3e7438b35.tar.bz2 gnumach-08dac1991732db78ce85af228c7a7ae3e7438b35.zip |
vm_map: Fix proxy object protection check
* If not making a copy, don't cap protection to the limit enforced
by the proxy, and only require read access. This fixes mapping
parts of read-only files MAP_ANON + PROT_READ|PROT_WRITE.
* Instead of silently capping protection, return KERN_PROTECTION_FAILURE
to the caller like the other vm_*() routines do.
Diffstat (limited to 'vm/vm_debug.c')
0 files changed, 0 insertions, 0 deletions