Last active
April 2, 2019 11:21
-
-
Save amimof/de5848a7e3a68aed37ad12310eaebedd to your computer and use it in GitHub Desktop.
Installs and enables AppArmor on debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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