1.7.1.2 Ensure AppArmor is enabled in the bootloader configuration - security=apparmor

Information

Configure AppArmor to be enabled at boot time and verify that it has not been overwritten by the bootloader boot parameters.

Note: This recommendation is designed around the grub2 bootloader, if LILO or another bootloader is in use in your environment enact equivalent settings.

Rationale:

AppArmor must be enabled at boot time in your bootloader configuration to ensure that the controls it provides are not overridden.

Solution

Edit /etc/default/grub and add the apparmor=1 and security=apparmor parameters to the GRUB_CMDLINE_LINUX= line

GRUB_CMDLINE_LINUX='apparmor=1 security=apparmor'

Run the following command to update the grub2 configuration:

# grub2-mkconfig -o /boot/grub2/grub.cfg

See Also

https://workbench.cisecurity.org/files/2854

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-7(9), CSCv7|14.6

Plugin: Unix

Control ID: 2b60c05fde6f954ba3518f677c246817279294b51a7a86e07878b292258d041f