Seems like mysqld would need to hook into the audit system. It could then detect access failures due to either selinux or apparmor.
This however seems like a large upstream endeavor. -- [lucid] MySQL fails to install db (mysql_install_db) in specified directory due to AppArmor https://bugs.launchpad.net/bugs/597490 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs