serialize_profile_from_old_profile() crash if file contains multiple profiles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Undecided
|
Christian Boltz | ||
2.10 |
Fix Released
|
Undecided
|
Christian Boltz | ||
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
= Changed Local Profiles =
The following local profiles were changed. Would you like to save them?
[1 - /sbin/dhclient]
2 - /usr/sbin/nmbd
3 - /usr/bin/snx
4 - /usr/sbin/dnsmasq
5 - /{usr/,}bin/ping
6 - /usr/sbin/smbd
7 - /usr/lib/
(S)ave Changes / Save Selec(t)ed Profile / [(V)iew Changes] / View Changes b/w (C)lean profiles / Abo(r)t
Traceback (most recent call last):
File "/usr/sbin/
apparmor.
File "/usr/lib/
save_profiles()
File "/usr/lib/
newprofile = serialize_
File "/usr/lib/
if write_prof_
AttributeError: 'collections.
An unexpected error occoured!
For details, see /tmp/apparmor-
Please consider reporting a bug at https:/
and attach this file.
When I pressed V button aa-logprof exits with error.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: apparmor 2.10-0ubuntu6
ProcVersionSign
Uname: Linux 4.2.0-21-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
Date: Mon Dec 21 09:54:51 2015
InstallationDate: Installed on 2014-04-19 (611 days ago)
InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
ProcKernelCmdline: BOOT_IMAGE=
SourcePackage: apparmor
Syslog:
UpgradeStatus: Upgraded to wily on 2015-11-14 (36 days ago)
summary: |
- aa-logprof crash again + serialize_profile_from_old_profile() crash if file contains multiple + profiles |
Changed in apparmor: | |
status: | Fix Committed → Fix Released |
The debug log indicates that this happens for profile '/sbin/dhclient', hat '/usr/lib/ NetworkManager/ nm-dhcp- client. action' - but unfortunately it's a "delayed" error which makes the debug log less useful :-(
Can you reproduce that crash? If yes, please attach your /var/log/ audit/audit. log (or whatever logfile aa-logprof reads, see the message at startup) and the content of /etc/apparmor.d/ as tarball. (If you don't want to have everything in the public bugtracker, you can mail it to me - apparmor [at] cboltz.de)