[Bug 201799] Re: Confusing mysqld startup failure with apparmor (Hardy)

Kees Cook kees at ubuntu.com
Sat Apr 26 17:17:40 BST 2008


On Sat, Apr 26, 2008 at 02:37:54AM -0000, Rick Bahague Jr wrote:
> I disabled app armor and now it is working.
> 
> /etc/init.d/apparmor stop
> update-rc.d -f apparmor remove
> 
> We should really fix this since many are using this application in
> Ubuntu.

No.  Do not do this.  Please disable the _profile_ for mysqld
if it is causing problems:

  sudo apt-get install apparmor
  sudo touch /etc/apparmor.d/disable/usr.sbin.mysqld
  sudo /etc/init.d/apparmor start
  sudo /etc/init.d/mysqld restart

or, just flip the profile into complain mode:

  sudo aa-complain mysqld

better yet, fix the profile:

  sudo vi /etc/apparmor.d/*mysqld
  sudo /etc/init.d/mysqld restart

Do not remove the entire subsystem.  :P

-- 
Kees Cook
Ubuntu Security Team

-- 
Confusing mysqld startup failure with apparmor (Hardy)
https://bugs.launchpad.net/bugs/201799
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.



More information about the Ubuntu-server-bugs mailing list