http://bugzilla.opensuse.org/show_bug.cgi?id=918787
--- Comment #2 from Christian Boltz ---
You didn't explicitely mention that this bug crashes aa-logprof with
AppArmorException: 'Unexpected rank input: var/run/nscd/passwd'
(at least that's what I get with a bzr trunk checkout)
Anyway, here's the patch to avoid the crash. I proposed it upstream, but don't
have any feedback yet.
Apply the patch to /usr/lib/python3.4/site-packages/apparmor/logparser.py
=== modified file 'utils/apparmor/logparser.py'
--- utils/apparmor/logparser.py 2015-01-17 10:04:12 +0000
+++ utils/apparmor/logparser.py 2015-02-23 20:55:42 +0000
@@ -111,6 +111,7 @@
ev['pid'] = event.pid
ev['task'] = event.task
ev['info'] = event.info
+ ev['error_code'] = event.error_code
dmask = event.denied_mask
rmask = event.requested_mask
ev['magic_token'] = event.magic_token
@@ -162,6 +163,11 @@
except KeyError:
ev['aamode'] = None
+ # "translate" disconnected paths to errors, which means the event will
be ignored.
+ # XXX Ideally we should propose to add the attach_disconnected flag to
the profile
+ if ev['error_code'] == 13 and ev['info'] == 'Failed name lookup -
disconnected path':
+ ev['aamode'] = 'ERROR'
+
if ev['aamode']:
#debug_logger.debug(ev)
return ev
--
You are receiving this mail because:
You are on the CC list for the bug.