opnsense-src/sys/hardenedbsd
Shawn Webb fc5ba17e78
HBSD+OPNsense: Set hardening.pax.disallow_map32bit.status=1 by default
LuaJIT creates 32-bit memory maps in a 64-bit execution environment,
which is disabled by default in HardenedBSD. We never ported the
MAP_32BIT disallow logic over from HardenedBSD to OPNsense prior to
18.1. The merge of HardenedBSD's ASLR implementation for 18.1 also
brought in the new logic.

Instead of removing disallow_map32bit, simply set it to 1 by default.
This will allow those who don't use LuaJIT applications to set it to 2
in /boot/loader.conf.local.

Note that this commit is specific to OPNsense. OPNsense ships without
the PAX_SYSCTLS kernel option, thus it's impossible to toggle via
sysctl.conf(5) and must be set via loader.conf.local.

Signed-off-by:	Shawn Webb <shawn@opnsense.org>
github-issue:	opnsense/plugins#466
(cherry picked from commit 5a1bbae356)
2018-01-12 02:37:06 -05:00
..
hbsd_pax_aslr.c HBSD+OPNsense: Set hardening.pax.disallow_map32bit.status=1 by default 2018-01-12 02:37:06 -05:00
hbsd_pax_common.c HBSD: Reimport HardenedBSD innovations 2017-09-29 18:08:41 -04:00
hbsd_pax_hardening.c HBSD: Reimport HardenedBSD innovations 2017-09-29 18:08:41 -04:00
hbsd_pax_internal.h HBSD: Reimport HardenedBSD innovations 2017-09-29 18:08:41 -04:00
hbsd_pax_log.c HBSD: Reimport HardenedBSD innovations 2017-09-29 18:08:41 -04:00
hbsd_pax_segvguard.c HBSD: Reimport HardenedBSD innovations 2017-09-29 18:08:41 -04:00