Disabling AppArmor¶
AppArmor is the default Mandatory Access Control (MAC) system on Ubuntu. It enforces policies for the running processes based on an allow-list of actions that they can take, such as files that can be accessed, network connections that can established or capabilities that the processes can hold.
If an application’s profile restricts an action that the process should legitimately take, the application may not function correctly, or as expected. In such an instance, people or online forums might suggest disabling AppArmor altogether. Ubuntu strongly advises against this, as it would disable the protections for all the other applications installed, as well as for snaps.
Instead, you should take one or more of the following steps:
Open a bug report.
Identify and correct the problem in the AppArmor profile.
As a last resort, disable only the problematic profile, as long as you understand the risks that this action could expose you to.