AppArmor fails after MySQL installation using 18.04.1 LTS

Bug #1808360 reported by Waylon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

This is run and returned under root.

08:12 ~: aa-complain /etc/apparmor.d

ERROR: Include file /etc/apparmor.d/abstractions/mysql not found

08:18 ~: apt-cache policy apparmor.d
libapparmor-dev:
  Installed: (none)
  Candidate: 2.12-4ubuntu5.1
  Version table:
     2.12-4ubuntu5.1 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     2.12-4ubuntu5 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

Revision history for this message
Waylon (wrtechnopath-g) wrote :

I created a file /etc/apparmor.d/abstractions/mysql and inserted the folowing:

<pre>
# ------------------------------------------------------------------
#
# Copyright (C) 2002-2006 Novell/SUSE
# Copyright (C) 2013 Christian Boltz
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
# ------------------------------------------------------------------

   /var/lib/mysql{,d}/mysql{,d}.sock rw,
   /{var/,}run/mysql{,d}/mysql{,d}.sock rw,
   /usr/share/{mysql,mysql-community-server,mariadb}/charsets/ r,
   /usr/share/{mysql,mysql-community-server,mariadb}/charsets/*.xml r,
</pre>

Revision history for this message
Waylon (wrtechnopath-g) wrote :

Didn't meant to have the tags (<pre> and </pre>)

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

The apparmor package provides this file:

$ dpkg -S /etc/apparmor.d/abstractions/mysql
apparmor: /etc/apparmor.d/abstractions/mysql

It seems the file was accidentally deleted. Recreating it in the manner you did is the proper way to resolve the issue.

Changed in apparmor (Ubuntu):
status: New → Invalid
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.