Skip to content

Instantly share code, notes, and snippets.

@amimof
Last active April 2, 2019 11:21
Show Gist options
  • Save amimof/de5848a7e3a68aed37ad12310eaebedd to your computer and use it in GitHub Desktop.
Save amimof/de5848a7e3a68aed37ad12310eaebedd to your computer and use it in GitHub Desktop.
Installs and enables AppArmor on debian
#!/bin/bash
apt-get update
apt-get install apparmor apparmor-utils
mkdir -p /etc/default/grub.d
echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT apparmor=1 security=apparmor"' | sudo tee /etc/default/grub.d/apparmor.cfg
update-grub
echo 'Reboot required for the changes to take effect. After reboot, verify AppArmor status by issuing `aa-status`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment