]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Return ENOTSUP for mmap/mprotect if prot not subset of prot_max
authoremaste <emaste@FreeBSD.org>
Wed, 26 Feb 2020 20:03:43 +0000 (20:03 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 26 Feb 2020 20:03:43 +0000 (20:03 +0000)
commitb21663598346905badca74301d75672f4fff3759
tree4196db35864e9ea458289bac14d974e8bc222593
parentc682072587961299863fd1dd28adc0ff3ec27e59
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
lib/libc/sys/mmap.2
lib/libc/sys/mprotect.2
sys/vm/vm_mmap.c