I have followed the instructions here to set up a Galera cluster. The instruction says I need to disable appArmor:
By default, some servers—for instance, Ubuntu—include AppArmor, which may prevent mysqld from opening additional ports or running scripts. You must disable AppArmor or configure it to allow mysqld...
So I followed the instructions and executed, the following commands:
sudo ln -s /etc/apparmor.d/usr /etc/apparmor.d/disable/.sbin.mysqld sudo service apparmor restart
I have completed the cluster configuration. But I am not sure if I have correctly disabled the AppArmor, because when I run:
... some more output here 2 processes have profiles defined. 1 processes are in enforce mode. /usr/sbin/mysqld (1938) 1 processes are in complain mode. snap.amazon-ssm-agent.amazon-ssm-agent (1295) 0 processes are unconfined but have a profile defined.
I see mysqld is in enforce mode... what does this mean? Does it mean AppArmor is disabled for MySQL? Is it possible to disable AppArmor all together?