Ensure AppArmor is not disabled in bootloader configuration (Scored)

Level 2 - Server 
Level 2 - Workstation

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

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

Run the following command and verify that no linux line the apparmor=0 parameter set:

# grep "^\s*linux" /boot/grub/grub.cfg

Edit /etc/default/grub and remove all instances of apparmor=0 from all CMDLINE_LINUX parameters:


Run the following command to update the grub2 configuration:

# update-grub

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

  • ubuntu1604/1/6/2/1.txt
  • Last modified: 2017/05/02 17:14
  • by