SV-269452r1208318_rule
V-269452
SRG-OS-000433-GPOS-00193
ALMA-09-044900
CAT II
10
Configure the system to enable ASLR with the following command:
$ echo 'kernel.randomize_va_space = 2' | sudo tee /etc/sysctl.d/60-aslr.conf
Reload settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify AlmaLinux OS 9 is implementing ASLR with the following command:
$ sysctl kernel.randomize_va_space
kernel.randomize_va_space = 2
If "kernel.randomize_va_space" is not set to "2", this is a finding.
Check that the configuration files are present to enable this kernel parameter:
$ /usr/lib/systemd/systemd-sysctl --cat-config | egrep -v '^(#|;)' | grep -F kernel.randomize_va_space | tail -1
kernel.randomize_va_space = 2
If "kernel.randomize_va_space" is not set to "2", or is missing, this is a finding.
V-269452
False
ALMA-09-044900
Verify AlmaLinux OS 9 is implementing ASLR with the following command:
$ sysctl kernel.randomize_va_space
kernel.randomize_va_space = 2
If "kernel.randomize_va_space" is not set to "2", this is a finding.
Check that the configuration files are present to enable this kernel parameter:
$ /usr/lib/systemd/systemd-sysctl --cat-config | egrep -v '^(#|;)' | grep -F kernel.randomize_va_space | tail -1
kernel.randomize_va_space = 2
If "kernel.randomize_va_space" is not set to "2", or is missing, this is a finding.
M
5664