[Bug 915490] Re: mysql server cannot start with apparmor enabled
I upgraded the box runnning my mythtv backend server from 10.04 to 12.04 today, and was affected by this. fixed it by editing /etc/apparmor.d/usr.sbin.mysqld and changing lines /var/run/mysqld/mysqld.pid w, /var/run/mysqld/mysqld.sock w, to /run/mysqld/mysqld.pid w, /run/mysqld/mysqld.sock w, now mysql starts. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-5.1 in Ubuntu. https://bugs.launchpad.net/bugs/915490 Title: mysql server cannot start with apparmor enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/915490/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 915490] Re: mysql server cannot start with apparmor enabled
Jamie, I haven't chosen the old profile, I answered to override my local changes in every question I got. It still seems a bug to me. BTW, mysql is in version 5.5, isn't it? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-5.1 in Ubuntu. https://bugs.launchpad.net/bugs/915490 Title: mysql server cannot start with apparmor enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/915490/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 915490] Re: mysql server cannot start with apparmor enabled
Thank you for using Ubuntu and reporting a bug. Newer versions of Ubuntu use /run instead of /var/run now, so AppArmor profiles need to be adjusted accordingly. The AppArmor profile for mysql (from the mysql-5.1 source package) in 12.04 already includes the following line: /{,var/}run/mysqld/mysqld.sock w, Because 'w' covers 'c'reat, I am going to mark this bug as Invalid. It sounds like on upgrade you chose to use the old profile (in /etc/apparmor.d/usr.sbin.mysqld) without merging in the new changes from updated profile in 12.04. If this is in error, please reopen and please don't hesitate to file any other bugs you may find. ** Package changed: apparmor (Ubuntu) = mysql-5.1 (Ubuntu) ** Changed in: mysql-5.1 (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-5.1 in Ubuntu. https://bugs.launchpad.net/bugs/915490 Title: mysql server cannot start with apparmor enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/915490/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs