mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
let logparser.py parse_event() change disconnected path events to 'ERROR'
This means that aa-logprof will ignore the event instead of crashing with AppArmorException: 'Unexpected rank input: var/run/nscd/passwd' Note that I made the check as specific as possible to be sure it doesn't hide other events. References: https://bugzilla.opensuse.org/show_bug.cgi?id=918787 Acked-by: Steve Beattie <steve@nxnw.org> Also update test-capability.py - it contains a test that needs 'error_code': 0, added to avoid a failure. Patch by: Steve Beattie <steve@nxnw.org> Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
@@ -104,6 +104,7 @@ class CapabilityTest(unittest.TestCase):
|
||||
self.assertEqual(parsed_event, {
|
||||
'request_mask': set(),
|
||||
'denied_mask': set(),
|
||||
'error_code': 0,
|
||||
'magic_token': 0,
|
||||
'parent': 0,
|
||||
'profile': '/bin/ping',
|
||||
|
Reference in New Issue
Block a user