OPNsense - FreeBSD source
Find a file
Shawn Webb efe03b23a6 HBSD OPNsense: Separate out the ASLR code.
On OPNsense's 16.7 roadmap is HardenedBSD's ASLR code. This commit
separates out the ASLR code from the rest of our exploit mitigation
and system hardening code.

Testing and verification still need to be performed. Initial testing
(compile + boot + `procstat -v PIDofPIEapplication) has been
performed. More thorough testing should occur.

Shared object load order randomization in the RTLD is not included in
this patch. That will be discussed with the fine folks at OPNsense at
a later time.

On i386, the stack isn't randomized enough to provide enough space for
the VDSO to be randomized. Bump the stack randomization up to 14 for
32bit systems and lower the VDSO randomization to 8. This provides
enough of a difference between the two to allow for both stack and
VDSO randomization.

Note that ASLR on 32bit systems is still rather weak. Not much entropy
can be introduced into the stack and VDSO. Brute forcing the stack and
VDSO is well within the realm of possibility. Users are strongly
advised to migrate to 64bit systems.

Signed-off-by:	Shawn Webb <shawn.webb@hardenedbsd.org>
2016-06-08 17:20:42 +02:00
bin src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
cddl src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
contrib Fix multiple ntp vulnerabilities. 2016-06-05 10:26:26 +02:00
crypto Fix multiple OpenSSL vulnerabilitites. [SA-16:17] 2016-05-21 08:31:20 +02:00
etc gettytab: sync with upstream 2016-05-21 08:36:58 +02:00
games src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
gnu src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
include src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
kerberos5 src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
lib Fix multiple OpenSSL vulnerabilitites. [SA-16:17] 2016-05-21 08:31:20 +02:00
libexec src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
release src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
rescue src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
sbin Revert "tools: apply pf_match.diff" 2016-05-30 15:17:00 +02:00
secure src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
share .cshrc: add more key bindings 2016-05-21 08:35:45 +02:00
sys HBSD OPNsense: Separate out the ASLR code. 2016-06-08 17:20:42 +02:00
tests src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
tools src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
usr.bin src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
usr.sbin Fix multiple ntp vulnerabilities. 2016-06-05 10:26:26 +02:00
COPYRIGHT src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
LOCKS src: initial commit based on FreeBSD-10.0 2014-11-09 09:30:14 +01:00
MAINTAINERS *: upgrade to 10.1 as a bulk commit 2015-02-10 19:21:02 +01:00
Makefile src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
Makefile.inc1 src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
ObsoleteFiles.inc src: clean-cut move to release/10.3.0 2016-05-21 08:25:57 +02:00
README src: initial commit based on FreeBSD-10.0 2014-11-09 09:30:14 +01:00
UPDATING Fix multiple ntp vulnerabilities. 2016-06-05 10:26:26 +02:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html