[MDEV-2342] LP:876550 - apparmor blocks starting of mariadb in ubuntu ocelot (11.10) Created: 2011-10-17  Updated: 2012-10-04  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Carl Leitner (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug876550.xml    

 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



 Comments   
Comment by Kristian Nielsen [ 2011-11-16 ]

Re: apparmor blocks starting of mariadb in ubuntu ocelot (11.10)
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.

Comment by Rasmus Johansson (Inactive) [ 2011-11-16 ]

Launchpad bug id: 876550

Generated at Thu Feb 08 06:41:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.