AppArmor fails after MySQL installation using 18.04.1 LTS

Bug #1808360 reported by Waylon on 2018-12-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)

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
  Installed: (none)
  Candidate: 2.12-4ubuntu5.1
  Version table:
     2.12-4ubuntu5.1 500
        500 bionic-updates/main amd64 Packages
        500 bionic-security/main amd64 Packages
     2.12-4ubuntu5 500
        500 bionic/main amd64 Packages

Waylon (wrtechnopath-g) wrote :

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

# ------------------------------------------------------------------
# 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,

Waylon (wrtechnopath-g) wrote :

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers