| 184 | } |
| 185 | |
| 186 | int |
| 187 | kern_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 | |
| 199 | int |
| 200 | kern_mmap(struct thread *td, uintptr_t addr0, size_t len, int prot, int flags, |
no outgoing calls
no test coverage detected