HBSD ASLR: refactor jail initialization

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD HARDENING: refactor jail initialization

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
HBSD SEGVGUARD: refactor jail initialization

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD SEGVGUARD: fix type in pax_segvguard_sysinit(...)

Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD ASLR: make ASLR state-variables static

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD SEGVGUARD: make segvguard's state-variables static

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD HARDENING: make hardening related state variebles static

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD LOG: make log related state-variables static

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD LOG: paxify log

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD ASLR: fix typo

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD: fix build error

hbsd_pax_common.o: In function `pax_init_prison':
/usr/data/source/git/opBSD/hardenedBSD.git/sys/hardenedbsd/hbsd_pax_common.c:178:
undefined reference to `pax_aslr_init_prison32'
*** [kernel.debug] Error code 1

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD SEGVGUARD: Use per-bucket locks. What we realy need is a per-mount point hash table!

(cherry picked from commit 1a5e6dbc93f87d3ce27fc79cf56622e2120d8dd4)
Reviewed-by: Shawn Webb <shawn.webb@hardenedbsd.org>
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
PAX SEGVGUARD: remove unneeded header file

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD SEGVGUARD: make preset values private

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD SEGVGUARD: paxify

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD SEGVGUARD: add missing }

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD LOG: enable logging to system after SegvGuard migration

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD CONFIG: added PAX_SEGVGUARD to OP-ASLR kernel config

Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD: remove unneeded forward declaration

github-issue: #60
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
Readd Makefile.inc that were used to include upper level Makefile.inc and
set (among other things) the destination where the binary should be installed