Interview Prep/Linux/Firewalls, MAC & Compliance

What is AppArmor and how does it compare to SELinux?

IntermediateProductionFirewalls, MAC & Compliance
Answer

AppArmor (Ubuntu, Debian, SUSE) confines programs with path-based profiles in /etc/apparmor.d/, which are easier to read and write. SELinux is label-based, more granular, and covers the whole system including MLS. Both are LSMs.

sudo aa-status
sudo aa-complain /etc/apparmor.d/usr.sbin.nginx    # log only
sudo aa-enforce  /etc/apparmor.d/usr.sbin.nginx
sudo aa-logprof                                     # build rules from logs
All Linux questions Roadmap: Linux

More on Firewalls, MAC & Compliance