MCPcopy Create free account
hub / github.com/F-Stack/f-stack / kern_mmap_maxprot

Function kern_mmap_maxprot

freebsd/vm/vm_mmap.c:186–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186int
187kern_mmap_maxprot(struct proc *p, int prot)
188{
189
190 if ((p->p_flag2 & P2_PROTMAX_DISABLE) != 0 ||
191 (p->p_fctl0 & NT_FREEBSD_FCTL_PROTMAX_DISABLE) != 0)
192 return (_PROT_ALL);
193 if (((p->p_flag2 & P2_PROTMAX_ENABLE) != 0 || imply_prot_max) &&
194 prot != PROT_NONE)
195 return (prot);
196 return (_PROT_ALL);
197}
198
199int
200kern_mmap(struct thread *td, uintptr_t addr0, size_t len, int prot, int flags,

Callers 2

protmax_statusFunction · 0.85
vm_mmap.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected