HomeFreeBSD

Return ENOTSUP for mmap/mprotect if prot not subset of prot_max

Description

Return ENOTSUP for mmap/mprotect if prot not subset of prot_max

From POSIX,

[ENOTSUP]

The implementation does not support the combination of accesses
requested in the prot argument.

This fits the case that prot contains permissions which are not a subset
of prot_max.

Reviewed by: brooks, cem
Relnotes: Yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23843

Details

Provenance
emasteAuthored on Feb 26 2020, 8:03 PM
Parents
rG2a12053589c5: Remove support for FreeBSD 4-7.
Branches
Unknown
Tags
Unknown

Event Timeline