mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
mmap-rnd-bits: Handle unwritable /etc/sysctl.d/
This commit is contained in:
parent
434cfb427f
commit
48a68ba237
@ -45,6 +45,9 @@ vm.mmap_rnd_bits=${BITS_MAX}
|
||||
vm.mmap_rnd_compat_bits=${COMPAT_BITS_MAX}"
|
||||
|
||||
## Write the sysctl.d conf file.
|
||||
echo "${SYSCTL}" > /etc/sysctl.d/30_security-misc_aslr-mmap.conf
|
||||
if ! echo "${SYSCTL}" | tee /etc/sysctl.d/30_security-misc_aslr-mmap.conf > /dev/null
|
||||
then
|
||||
echo "Error writing ASLR map config"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user