HomeFreeBSD

Implement enforcing write XOR execute mapping policy.

Description

Implement enforcing write XOR execute mapping policy.

It is checked in vm_map_insert() and vm_map_protect() that PROT_WRITE |
PROT_EXEC are never specified together, if vm_map has MAP_WX flag set.
FreeBSD control flag allows specific binary to request WX exempt, and
there are per ABI boolean sysctls kern.elf{32,64}.allow_wx to enable/
disable globally.

Reviewed by: emaste, jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28050

Details

Provenance
kibAuthored on Jan 8 2021, 10:40 PM
Reviewer
emaste
Differential Revision
D28050: Implement enforcing write XOR execute mapping policy.
Parents
rG2c52512caf6e: pnglite: should use ntohl
Branches
Unknown
Tags
Unknown