Apparently, the aa.py script is not loading all the profiles in /etc/apparmor.d. I added this file and the script now works:
root@BlogApparmor1:/etc/apparmor.d# cat scripts
#include <abstractions> root@BlogApparmor1:/etc/apparmor.d# root@BlogApparmor1:/etc/apparmor.d# aa-autodep /usr/bin/mysqld_safe Writing updated profile for /usr/bin/mysqld_safe. root@BlogApparmor1:/etc/apparmor.d#
Apparently, the aa.py script is not loading all the profiles in /etc/apparmor.d. I added this file and the script now works:
root@BlogApparm or1:/etc/ apparmor. d# cat scripts
#include <abstractions> or1:/etc/ apparmor. d# or1:/etc/ apparmor. d# aa-autodep /usr/bin/ mysqld_ safe mysqld_ safe. or1:/etc/ apparmor. d#
root@BlogApparm
root@BlogApparm
Writing updated profile for /usr/bin/
root@BlogApparm