|
@@ -290,6 +290,11 @@ function configure_internet_protocol {
|
290
|
290
|
sed -i "s|#net.ipv4.conf.default.accept_redirects.*|net.ipv4.conf.default.accept_redirects = 0|g" /etc/sysctl.conf
|
291
|
291
|
sed -i "s|net.ipv4.conf.default.accept_redirects.*|net.ipv4.conf.default.accept_redirects = 0|g" /etc/sysctl.conf
|
292
|
292
|
fi
|
|
293
|
+ if ! grep -q "kernel.randomize_va_space" /etc/sysctl.conf; then
|
|
294
|
+ echo "kernel.randomize_va_space=2" >> /etc/sysctl.conf
|
|
295
|
+ else
|
|
296
|
+ sed -i 's|kernel.randomize_va_space.*|kernel.randomize_va_space=2|g' /etc/sysctl.conf
|
|
297
|
+ fi
|
293
|
298
|
mark_completed $FUNCNAME
|
294
|
299
|
}
|
295
|
300
|
|