mysql-server postrm breaks apparmor profile for later versions on purge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Invalid
|
Undecided
|
Unassigned | ||
Oneiric |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
debhelper (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Lucid |
Invalid
|
Undecided
|
Unassigned | ||
Oneiric |
Invalid
|
High
|
Clint Byrum | ||
Precise |
Invalid
|
Undecided
|
Unassigned | ||
mysql-5.1 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Lucid |
Invalid
|
Undecided
|
Unassigned | ||
Oneiric |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Invalid
|
Undecided
|
Unassigned | ||
mysql-5.5 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Invalid
|
Undecided
|
Unassigned | ||
Oneiric |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
mysql-dfsg-5.1 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
Clint Byrum | ||
Oneiric |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Invalid
|
Undecided
|
Unassigned |
Bug Description
MySQL 5.1 and 5.5 must be rebuilt with the updated debhelper/apparmor and so cannot be verified until those fixes are complete.
Also for clarity sake, there has been a lot of shuffling of this bug around multiple packages for various reasons. This bug is fixed in quantal as part of the apparmor upload. All reverse deps should then be rebuilt for quantal. For SRU's, only known affected packages should be rebuilt, which thus far seems only to be mysql.
[Test case]
Apparmor:
1.Install dh-apparmor
2. Build a package which build-depends on it (such as mysql-5.5)
3. Extract debs which have dh_apparmor run on them into a dir in tmp with dpkg -e file.deb /tmp/foo
4. Verify that the postrm has conditional logic to not remove the files under /etc/apparmor.d/*/* if the main profile exists.
Debhelper.
Same test case as above, but with debhelper providing dh_apparmor
MySQL 5.1 and MySQL 5.5 (oneiric, precise, lucid)
1. install mysql-server
2. check /var/lib/
3. for oneiric and lucid, upgrade to Ubuntu 12.04, verify that /etc/apparmor.
[Regression Potential]
The logic is extremely straight forward, so regressions seem unlikely. Still, at worst, purging will leave behind some useless files in /etc/apparmor.d which should not be of much concern anyway.
== Original bug description ==
After upgrading from Kubuntu 11.10 to 12.04 beta I found that mysql isn't running after booting the system
In the syslog there is the following row
Apr 22 18:04:13 deathworld kernel: [ 15.848658] init: mysql pre-start process (1033) terminated with status 1
I've tried to execute /etc/init/
/lib/init/
shows the following error:
AppArmor parser error for /etc/apparmor.
It's line:
#include <local/
After removing this line mysql can start without any problems
Description: Ubuntu 12.04 LTS
Release: 12.04
Changed in debhelper (Ubuntu Oneiric): | |
assignee: | nobody → Clint Byrum (clint-fewbar) |
importance: | Undecided → High |
status: | Triaged → In Progress |
tags: | added: lucid2precise oneiric2precise |
description: | updated |
description: | updated |
description: | updated |
Changed in mysql-dfsg-5.1 (Ubuntu Lucid): | |
assignee: | nobody → Clint Byrum (clint-fewbar) |
status: | Triaged → In Progress |
Changed in mysql-5.5 (Ubuntu Lucid): | |
status: | Triaged → Invalid |
Changed in mysql-5.5 (Ubuntu Oneiric): | |
status: | Confirmed → Invalid |
Changed in mysql-5.1 (Ubuntu Lucid): | |
status: | Triaged → Invalid |
Changed in mysql-5.5 (Ubuntu Precise): | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
Changed in apparmor (Ubuntu Precise): | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
Changed in mysql-dfsg-5.1 (Ubuntu Lucid): | |
importance: | Undecided → Medium |
Changed in mysql-5.5 (Ubuntu): | |
assignee: | nobody → e75iceman@aol.com (e75iceman) |
Changed in mysql-5.5 (Ubuntu): | |
assignee: | e75iceman@aol.com (e75iceman) → nobody |
Changed in mysql-5.5 (Ubuntu Precise): | |
status: | Fix Committed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.