| /xnu-10002.41.9/osfmk/mach/ |
| H A D | vm_prot.h | 97 #define VM_PROT_ALL (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE) macro
|
| H A D | host_priv.defs | 156 * with VM_PROT_ALL.
|
| /xnu-10002.41.9/libkern/kxld/ |
| H A D | kxld_seg.c | 156 seg->initprot = VM_PROT_ALL; in kxld_seg_create_seg_from_sections() 157 seg->maxprot = VM_PROT_ALL; in kxld_seg_create_seg_from_sections() 431 le->maxprot = VM_PROT_ALL; in kxld_seg_init_linkedit() 861 seg->initprot = VM_PROT_ALL; in kxld_seg_set_vm_protections() 862 seg->maxprot = VM_PROT_ALL; in kxld_seg_set_vm_protections()
|
| /xnu-10002.41.9/osfmk/vm/ |
| H A D | vm_user.c | 338 VM_PROT_ALL, in mach_vm_allocate_kernel() 408 VM_PROT_ALL, in vm_allocate_external() 551 (new_protection & ~(VM_PROT_ALL | VM_PROT_COPY))) { in mach_vm_protect() 1264 if ((*cur_protection & ~VM_PROT_ALL) || in mach_vm_remap_new_external() 1265 (*max_protection & ~VM_PROT_ALL) || in mach_vm_remap_new_external() 1439 if ((*cur_protection & ~VM_PROT_ALL) || in mach_vm_remap_new_kernel() 1440 (*max_protection & ~VM_PROT_ALL) || in mach_vm_remap_new_kernel() 1569 if (access & ~VM_PROT_ALL || (start + size < start)) { in mach_vm_wire_kernel() 1618 if ((access & ~VM_PROT_ALL) || (start + size < start)) { in vm_wire() 2656 original_protections = permission & VM_PROT_ALL; in mach_make_memory_entry_internal() [all …]
|
| H A D | vm_shared_region.c | 829 mem_entry->protection = VM_PROT_ALL; in vm_shared_region_create() 1664 mappings[0].sms_init_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1665 mappings[0].sms_max_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1813 mappings[i].sms_init_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1814 mappings[i].sms_max_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1828 mappings[i].sms_init_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1829 mappings[i].sms_max_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 2330 max_prot = VM_PROT_ALL; in vm_shared_region_enter() 3472 mem_entry->protection = VM_PROT_ALL; in _vm_commpage_init() 3672 VM_PROT_ALL, in vm_commpage_enter() [all …]
|
| H A D | memory_object.c | 225 pmap_page_protect(VM_PAGE_GET_PHYS_PAGE(m), VM_PROT_ALL & ~prot); in memory_object_lock_page() 325 if ((prot & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) != 0 && prot != VM_PROT_NO_CHANGE) { in memory_object_lock_request()
|
| H A D | vm_map.h | 191 #define VM_VALID_VMPROTECT_FLAGS (VM_PROT_ALL | VM_PROT_COPY | VM_PROT_UEXEC) 193 #define VM_VALID_VMPROTECT_FLAGS (VM_PROT_ALL | VM_PROT_COPY)
|
| H A D | vm_tests.c | 424 anon_object, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, in vm_test_device_pager_transpose() 432 VM_PROT_DEFAULT, VM_PROT_ALL, in vm_test_device_pager_transpose()
|
| H A D | vm_map.c | 2192 new_entry->max_protection = VM_PROT_ALL; in vm_map_find_space() 4116 (cur_protection & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) || in vm_map_enter_mem_object_helper() 4117 (max_protection & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) || in vm_map_enter_mem_object_helper() 5042 (cur_protection & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) || in vm_map_enter_mem_object_control() 5043 (max_protection & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) || in vm_map_enter_mem_object_control() 5322 VM_PROT_ALL, in vm_map_enter_cpm() 5323 VM_PROT_ALL, in vm_map_enter_cpm() 5370 VM_PROT_ALL, VM_PROT_WRITE, in vm_map_enter_cpm() 5949 max_prot = new_prot & (VM_PROT_ALL | VM_PROT_ALLEXEC); in vm_map_protect() 6581 access_type = (caller_prot & (VM_PROT_ALL | VM_PROT_ALLEXEC)); in vm_map_wire_nested() [all …]
|
| /xnu-10002.41.9/tests/ |
| H A D | perf_vmfault.c | 125 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_make_memory_entry(mach_task_self(), &size, addr1, VM_PROT_ALL … in map_mem_regions_single() 131 FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_NONE), "vm_map"); in map_mem_regions_single()
|
| /xnu-10002.41.9/libsyscall/mach/ |
| H A D | vm_reclaim.c | 105 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in mach_vm_reclaim_ringbuffer_init()
|
| H A D | mach_vm.c | 176 if (object == MEMORY_OBJECT_NULL && max_protection == VM_PROT_ALL && in mach_vm_map()
|
| /xnu-10002.41.9/osfmk/kern/ |
| H A D | kext_alloc.c | 204 VM_PROT_ALL, in kext_alloc()
|
| /xnu-10002.41.9/tests/vm/ |
| H A D | vm_allocation.c | 436 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map() 445 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_4kB() 453 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_2MB() 463 (MAP_MEM_NAMED_CREATE | VM_PROT_ALL), &object_handle, 0), in memory_entry() 480 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_named_entry() 1691 vm_prot_t cur_protections[] = {VM_PROT_DEFAULT, VM_PROT_ALL + 1, ~VM_PROT_IS_MASK, INT_MAX}; in test_mach_vm_map_protection_inheritance_error() 1692 vm_prot_t max_protections[] = {VM_PROT_ALL, VM_PROT_ALL + 1, ~VM_PROT_IS_MASK, INT_MAX}; in test_mach_vm_map_protection_inheritance_error() 1743 (memory_object_offset_t)0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT), in test_mach_vm_map_large_mask_overflow_error() 1789 (MAP_MEM_NAMED_CREATE | VM_PROT_ALL), &object_handle, 0), in test_allocate_invalid_large_size()
|
| H A D | vm_test_shreg_ro.c | 27 return _prot_str[prot & VM_PROT_ALL]; in prot_str()
|
| H A D | vm_ranges.c | 381 (memory_object_offset_t)0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL,
|
| H A D | vm_reclaim.c | 62 …, 0, VM_FLAGS_ANYWHERE, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEF… in allocate_and_defer_free()
|
| /xnu-10002.41.9/osfmk/i386/commpage/ |
| H A D | commpage.c | 143 VM_PROT_ALL, in commpage_allocate() 144 VM_PROT_ALL, in commpage_allocate()
|
| /xnu-10002.41.9/bsd/kern/ |
| H A D | kern_mman.c | 225 prot = (uap->prot & VM_PROT_ALL); in mmap() 431 maxprot = VM_PROT_ALL; in mmap() 1117 prot = (vm_prot_t)(uap->prot & (VM_PROT_ALL | VM_PROT_TRUSTED | VM_PROT_STRIP_READ)); in mprotect()
|
| H A D | mach_loader.c | 2227 (scp->initprot & VM_PROT_ALL) == VM_PROT_NONE && in load_segment() 2228 (scp->maxprot & VM_PROT_ALL) == VM_PROT_NONE) { in load_segment() 2285 (scp->initprot & VM_PROT_ALL), in load_segment() 2286 (scp->maxprot & VM_PROT_ALL), in load_segment() 2394 initprot = (scp->initprot) & VM_PROT_ALL; in load_segment() 2395 maxprot = (scp->maxprot) & VM_PROT_ALL; in load_segment()
|
| /xnu-10002.41.9/osfmk/ipc/ |
| H A D | mach_kernelrpc.c | 125 args->cur_protection, VM_PROT_ALL, VM_INHERIT_DEFAULT); in _kernelrpc_mach_vm_map_trap()
|
| /xnu-10002.41.9/bsd/vm/ |
| H A D | vm_unix.c | 382 current_proc()->p_comm, proc_getpid(current_proc()), vaddr, prot_values[prot & VM_PROT_ALL]); in log_stack_execution_failure() 2240 vm_prot_t maxprot = VM_PROT_ALL; in shared_region_map_and_slide_setup() 2408 srfmp->fp->fp_glob, VM_PROT_ALL, MAP_FILE | MAP_PRIVATE | MAP_FIXED, 0, &maxprot); in shared_region_map_and_slide_setup() 3261 vm_prot_t prot = (rp->mwlr_protections & VM_PROT_ALL); in map_with_linking_np()
|
| /xnu-10002.41.9/osfmk/kdp/ |
| H A D | kdp.c | 740 r->protection = VM_PROT_ALL; r++; rp->nregions++; in kdp_regions()
|
| /xnu-10002.41.9/osfmk/arm/pmap/ |
| H A D | pmap.c | 4702 case VM_PROT_ALL: 5225 if (prot == VM_PROT_ALL) { 5317 if ((prot & VM_PROT_ALL) == VM_PROT_NONE) { 5332 case VM_PROT_ALL: 5567 if ((prot & VM_PROT_ALL) == VM_PROT_NONE) { 5581 case VM_PROT_ALL: 7112 vm_prot_t allow_mode = VM_PROT_ALL; 7144 …pmap_page_protect_options_with_flush_range(pn, (VM_PROT_ALL & ~VM_PROT_WRITE), options, flush_rang… 14514 pmap_page_protect(pn, VM_PROT_ALL);
|
| /xnu-10002.41.9/osfmk/i386/ |
| H A D | pmap_x86_common.c | 1745 case VM_PROT_ALL: in pmap_page_protect_options()
|