diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-12 12:43:39 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-12 23:35:22 +0000 |
commit | 0659df6faddfb27ba54a2cae2a12552cf4f823a0 (patch) | |
tree | c4f516ac92240eb7ed5957b6a4ecd5ecb461e4ed /sys/kern/link_elf.c | |
parent | d89e1db5a3319f4e3bc9403ed883c64638b67f71 (diff) | |
download | src-0659df6faddfb27ba54a2cae2a12552cf4f823a0.tar.gz src-0659df6faddfb27ba54a2cae2a12552cf4f823a0.zip |
Diffstat (limited to 'sys/kern/link_elf.c')
-rw-r--r-- | sys/kern/link_elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c index d9b5f9437b57..ea21bf447a55 100644 --- a/sys/kern/link_elf.c +++ b/sys/kern/link_elf.c @@ -1224,7 +1224,7 @@ link_elf_load_file(linker_class_t cls, const char* filename, error = vm_map_protect(kernel_map, (vm_offset_t)segbase, (vm_offset_t)segbase + round_page(segs[i]->p_memsz), - prot, FALSE); + prot, 0, VM_MAP_PROTECT_SET_PROT); if (error != KERN_SUCCESS) { error = ENOMEM; goto out; |