AppArmor fails after MySQL installation using 18.04.1 LTS
Bug #1808360 reported by
Waylon
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.
08:18 ~: apt-cache policy apparmor.d
libapparmor-dev:
Installed: (none)
Candidate: 2.12-4ubuntu5.1
Version table:
2.
500 http://
500 http://
2.12-4ubuntu5 500
500 http://
To post a comment you must log in.
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, ,}run/mysql{ ,d}/mysql{ ,d}.sock rw, share/{ mysql,mysql- community- server, mariadb} /charsets/ r, share/{ mysql,mysql- community- server, mariadb} /charsets/ *.xml r,
/{var/
/usr/
/usr/
</pre>