aa-complain crashed with apparmor.common.AppArmorException in cmd_complain(): "AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 41: Could not open 'local/usr.sbin.mysqld'\n"

Bug #1435298 reported by Albert Astals Cid
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

tried to run aa-complain /usr/sbin/mysqld

ProblemType: Crash
DistroRelease: Ubuntu 15.04
Package: apparmor-utils 2.9.1-0ubuntu7
ProcVersionSignature: Ubuntu 3.19.0-9.9-generic 3.19.1
Uname: Linux 3.19.0-9-generic x86_64
ApportVersion: 2.16.2-0ubuntu4
Architecture: amd64
Date: Mon Mar 23 12:30:33 2015
ExecutablePath: /usr/sbin/aa-complain
InstallationDate: Installed on 2011-11-21 (1217 days ago)
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
InterpreterPath: /usr/bin/python3.4
ProcCmdline: /usr/bin/python3 /usr/sbin/aa-complain /usr/sbin/mysqld
ProcKernelCmdline: BOOT_IMAGE=/boot/vmlinuz-3.19.0-9-generic root=UUID=5a15ae34-5eea-4f4e-8b2a-3bfb20eb9f35 ro quiet splash crashkernel=384M-2G:64M,2G-:128M crashkernel=384M-2G:64M,2G-:128M crashkernel=384M-2G:64M,2G-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M crashkernel=384M-:128M vt.handoff=7
PythonArgs: ['/usr/sbin/aa-complain', '/usr/sbin/mysqld']
SourcePackage: apparmor
Syslog:
 Mar 23 12:34:48 xps dbus[904]: [system] AppArmor D-Bus mediation is enabled
 Mar 23 12:40:33 xps dbus[940]: [system] AppArmor D-Bus mediation is enabled
SystemImageInfo:
 current build number: 0
 device name:
 channel: daily
 last update: Unknown
Title: aa-complain crashed with apparmor.common.AppArmorException in cmd_complain(): "AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 41: Could not open 'local/usr.sbin.mysqld'\n"
UpgradeStatus: Upgraded to vivid on 2012-02-27 (1119 days ago)
UserGroups:

Revision history for this message
Albert Astals Cid (aacid) wrote :
tags: removed: need-duplicate-check
Changed in apparmor (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Tyler Hicks (tyhicks) wrote :

This is fixed, by providing a helpful warning message instead of crashing, in Xenial's apparmor 2.10-3ubuntu2:

tyhicks@sec-xenial-amd64:~$ sudo rm /etc/apparmor.d/local/usr.sbin.mysqld
tyhicks@sec-xenial-amd64:~$ sudo aa-complain /usr/sbin/mysqld

Include file /etc/apparmor.d/local/usr.sbin.mysqld not found

Changed in apparmor (Ubuntu):
status: New → Fix Released
information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.