AppArmor is a Mandatory Access Control or MAC system. It uses Linux Security Module to restrict programs. AppArmor sets up a collection of default application profiles to protect Linux services. You can also protect any other applications running on your system by creating profile files yourself. In Ubuntu, AppArmor is installed and enabled by default.