Searched refs:maxprot (Results 1 - 14 of 14) sorted by relevance

/darwin-on-arm/xnu/security/
H A Dmac_file.c198 * both prot and maxprot will have VM_PROT_EXECUTE set after file_check_mmap
201 * The type of maxprot in file_check_mmap must be equivalent to vm_prot_t *
207 int flags, int *maxprot)
212 maxp = *maxprot;
214 if ((maxp | *maxprot) != *maxprot)
216 *maxprot = maxp;
206 mac_file_check_mmap(struct ucred *cred, struct fileglob *fg, int prot, int flags, int *maxprot) argument
H A Dmac_process.c367 * The type of maxprot in proc_check_map_anon must be equivalent to vm_prot_t
373 user_size_t u_size, int prot, int flags, int *maxprot)
383 MAC_CHECK(proc_check_map_anon, proc, cred, u_addr, u_size, prot, flags, maxprot);
372 mac_proc_check_map_anon(proc_t proc, user_addr_t u_addr, user_size_t u_size, int prot, int flags, int *maxprot) argument
H A Dmac_framework.h201 int prot, int flags, int *maxprot);
342 user_size_t u_size, int prot, int flags, int *maxprot);
H A Dmac_policy.h838 @param maxprot Maximum rights
842 in prot. The maxprot field holds the maximum permissions on the new
845 remove flags from maxprot.
857 int *maxprot
3155 @param maxprot Maximum rights
3161 cause a mapping to be rejected before this hook is called. The maxprot field
3164 access control checks, a policy should only remove flags from maxprot.
3176 int *maxprot
/darwin-on-arm/xnu/libkern/kxld/
H A Dkxld_seg.c89 seg->maxprot = src->maxprot;
118 seg->maxprot = src->maxprot;
153 seg->maxprot = VM_PROT_ALL;
425 le->maxprot = VM_PROT_ALL;
447 seg->maxprot = 0;
653 seghdr->maxprot = seg->maxprot;
693 seghdr->maxprot
[all...]
H A Dkxld_seg.h55 vm_prot_t maxprot; member in struct:kxld_seg
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_mman.c157 vm_prot_t maxprot; local
249 maxprot = VM_PROT_ALL;
254 error = mac_proc_check_map_anon(p, user_addr, user_size, prot, flags, &maxprot);
350 maxprot = VM_PROT_EXECUTE; /* ??? */
352 maxprot |= VM_PROT_READ;
389 maxprot |= VM_PROT_WRITE;
397 maxprot |= VM_PROT_WRITE;
402 fp->f_fglob, prot, flags, &maxprot);
485 if (maxprot & VM_PROT_READ)
486 maxprot |
1131 vm_prot_t maxprot = VM_PROT_ALL; local
[all...]
H A Dkern_core.c230 vm_prot_t maxprot; local
397 maxprot = vbr.max_protection;
412 sc64->maxprot = maxprot;
425 sc->maxprot = maxprot;
443 if ((maxprot & VM_PROT_READ) == VM_PROT_READ
H A Dmach_loader.c241 scp->maxprot = scp32->maxprot;
873 vm_prot_t maxprot; local
927 (scp->maxprot & VM_PROT_ALL) == VM_PROT_NONE) {
975 maxprot = (scp->maxprot) & VM_PROT_ALL;
982 initprot, maxprot,
1023 scp->initprot, scp->maxprot,
/darwin-on-arm/xnu/EXTERNAL_HEADERS/mach-o/
H A Dloader.h322 * by the maxprot and initprot fields. If the segment has sections then the
334 vm_prot_t maxprot; /* maximum VM protection */ member in struct:segment_command
354 vm_prot_t maxprot; /* maximum VM protection */ member in struct:segment_command_64
/darwin-on-arm/xnu/osfmk/kdp/ml/arm/
H A Dkdp_arm_common.c145 sc.maxprot = VM_PROT_READ;
/darwin-on-arm/xnu/osfmk/kdp/ml/i386/
H A Dkdp_x86_common.c512 sc.maxprot = VM_PROT_READ;
/darwin-on-arm/xnu/bsd/vm/
H A Dvm_unix.c1199 vm_prot_t maxprot = VM_PROT_ALL; local
1266 fp->f_fglob, VM_PROT_ALL, MAP_FILE, &maxprot);
/darwin-on-arm/xnu/libkern/c++/
H A DOSKext.cpp5410 result = OSKext_protect(kext_map, start, end, seg->maxprot, TRUE);

Completed in 88 milliseconds