[apparmor] [patch] [4/9] Add support for dbus events in parse_event()

Christian Boltz apparmor at cboltz.de
Sun Dec 27 15:07:19 UTC 2015


Hello,

this patch adds the dbus-specific details to the event data returned by 
parse_event().


[ 55-handle-dbus-events-in-parse_event.diff ]

=== modified file ./utils/apparmor/logparser.py
--- utils/apparmor/logparser.py 2015-12-21 00:13:57.211799567 +0100
+++ utils/apparmor/logparser.py 2015-12-25 16:43:56.958718997 +0100
@@ -142,6 +142,12 @@
             ev['peer'] = event.peer
         elif ev['operation'] and ev['operation'] == 'ptrace':
             ev['peer'] = event.peer
+        elif ev['operation'] and ev['operation'].startswith('dbus_'):
+            ev['peer_profile'] = event.peer_profile
+            ev['bus'] = event.dbus_bus
+            ev['path'] = event.dbus_path
+            ev['interface'] = event.dbus_interface
+            ev['member'] = event.dbus_member
 
         LibAppArmor.free_record(event)
 

Regards,

Christian Boltz
-- 
> Das ist uebrigens genau der "Trick" den reiserfs verwendet!
...ich dachte immer, der "Trick" von reiserfs sei:
if ($stromausfall) rm /* -r
[> David Haller und Ratti in fontlinge-devel]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20151227/95295439/attachment.pgp>


More information about the AppArmor mailing list