aa-complain crashed with apparmor.common.AppArmorException in get_profile_flags(): '/etc/apparmor.d/usr.bin.chromium-browser contains no profile'
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| AppArmor |
Fix Released
|
Undecided
|
Unassigned | ||
| Release Notes for Ubuntu |
Fix Released
|
Undecided
|
Unassigned | ||
| apparmor (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
| Trusty |
Fix Released
|
Medium
|
Unassigned | ||
| Utopic |
Fix Released
|
Medium
|
Unassigned | ||
Bug Description
Here the profile exists
-------
$ sudo aa-autodep /usr/bin/
Profile for /usr/bin/
-------
Here it doesn't exist
-------
$ sudo aa-genprof /usr/bin/
Traceback (most recent call last):
File "/usr/sbin/
apparmor.
File "/usr/lib/
raise AppArmorExcepti
apparmor.
-------
and finally this crashes again
-------
$ sudo aa-complain /usr/bin/
Setting /usr/bin/
Traceback (most recent call last):
File "/usr/sbin/
tool.
File "/usr/lib/
apparmor.
File "/usr/lib/
change_
File "/usr/lib/
old_flags = get_profile_
File "/usr/lib/
raise AppArmorExcepti
apparmor.
ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: apparmor-utils 2.8.95~
ProcVersionSign
Uname: Linux 3.13.0-
NonfreeKernelMo
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
Date: Sun Mar 23 08:47:30 2014
ExecutablePath: /usr/sbin/
InstallationDate: Installed on 2014-03-08 (14 days ago)
InstallationMedia: Ubuntu-Studio 14.04 "Trusty Tahr" - Alpha amd64 (20140224)
InterpreterPath: /usr/bin/python3.4
ProcCmdline: /usr/bin/python3 /usr/sbin/
ProcKernelCmdline: BOOT_IMAGE=
PythonArgs: ['/usr/
SourcePackage: apparmor
Title: aa-complain crashed with apparmor.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
| tags: | removed: need-duplicate-check |
| Changed in apparmor (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in apparmor: | |
| milestone: | none → 2.9.0 |
| Changed in apparmor (Ubuntu Utopic): | |
| status: | Confirmed → Fix Released |
| Changed in apparmor (Ubuntu Trusty): | |
| status: | New → Triaged |
| milestone: | none → trusty-updates |
| importance: | Undecided → Medium |
| Changed in apparmor (Ubuntu Trusty): | |
| status: | Fix Released → Triaged |
| Changed in ubuntu-release-notes: | |
| status: | New → Fix Released |
| tags: | added: aa-tools |

I suspect that the fact that the profile is named usr.bin. chromium- browser but contains a profile for the /usr/lib/ chromium- browser/ chromium- browser profile is confusing the tools here.