apparmor blocks starting of mariadb in ubuntu ocelot (11.10)

Bug #876550 reported by Carl Leitner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Undecided
Unassigned

Bug Description

Apparently in Ubuntu 11.10 /var/run has been moved to /run. This causes apparmor to prevent mariadb from running.

See the following related bug reports:
 https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/810580
 https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/810270

To fix it manually, in the file:
 /etc/apparmor.d/usr.sbin.mysql
I changed the lines:
  /var/run/mysqld/mysqld.pid w,
  /var/run/mysqld/mysqld.sock w,
to:
  /{,var/}run/mysqld/mysqld.pid w,
  /{,var/}run/mysqld/mysqld.sock w,

I _think_ that this needs to be fixed on mariadb's end and that this is what was done for the mysql package. In any case, it works and matches the changes made for other profiles under /etc/apparmor.d

Tags: packaging
Colin Charles (ccharles)
tags: added: packaging
Revision history for this message
Kristian Nielsen (knielsen) wrote :

The default AppArmor profile in MariaDB for Ubuntu has been removed. This wil eliminate this problem.
The fix will be in 5.1.56, 5.2.9, 5.3.3, and 5.5.x.

Changed in maria:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.