[ 1173.479970] audit: type=1400 audit(1651644810.452:104): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1908 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
[ 1173.479975] audit: type=1400 audit(1651644810.452:105): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1908 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
[ 1173.479978] audit: type=1400 audit(1651644810.452:106): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1908 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
[ 1173.479981] audit: type=1400 audit(1651644810.452:107): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1908 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
[ 1173.479984] audit: type=1400 audit(1651644810.452:108): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1908 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
[ 1173.479987] audit: type=1400 audit(1651644810.452:109): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1908 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
[ 1173.886489] audit: type=1400 audit(1651644810.856:110): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1918 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
[ 1173.886498] audit: type=1400 audit(1651644810.856:111): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1918 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
[ 1173.886504] audit: type=1400 audit(1651644810.856:112): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1918 comm="mysqld" requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
[ 1173.886508] audit: type=1400 audit(1651644810.856:113): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/mnt/HC_Volume_13321786/log/mysql/error.log" pid=1918 comm="mysqld"
requested_mask="ac" denied_mask="ac" fsuid=113 ouid=113
root@VirtualBox:~# systemctl status apparmor
How to disable AppArmor for a particular process?
To disable AppArmor only for a particular process run the following command
root@VirtualBox:~# ln -s /etc/apparmor.d/profile.name /etc/apparmor.d/disable/
root@VirtualBox:~# apparmor_parser -R /etc/apparmor.d/disable/profile.name
For example to disable AppArmor for MySQL service
root@VirtualBox:~# ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
root@VirtualBox:~# apparmor_parser -R /etc/apparmor.d/disable/usr.sbin.mysqld
To stop AppArmor
root@VirtualBox:~# systemctl stop apparmor
To disable AppArmor completely execute:
root@VirtualBox:~# systemctl disable apparmor
After disabling AppArmor you have to reboot your system