minor mmap-rnd-bits improvements

This commit is contained in:
Patrick Schleizer 2023-05-05 14:53:07 +00:00
parent a8e4121bef
commit f4fd0f9012
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -9,10 +9,12 @@
set -euo pipefail
shopt -s failglob
more_info_link="https://forums.whonix.org/t/automate-mmap-randomisation-to-fix-ppc64el/16514"
exit_with_error() {
echo "$0: SEE ALSO:" >&2
echo "" >&2
echo "https://forums.whonix.org/t/automate-mmap-randomisation-to-fix-ppc64el/16514" >&2
echo "$more_info_link" >&2
exit 1
}
@ -56,6 +58,8 @@ SYSCTL="\
## This file is automatically generated by:
## $0
## Do not edit!
## See also:
## $more_info_link
## Improves ASLR effectiveness for mmap.
vm.mmap_rnd_bits=${BITS_MAX}