[Ubuntu Wiki] Update of "DebuggingDBus" by pitti

Ubuntu Wiki noreply at ubuntu.com
Tue Nov 12 08:04:03 UTC 2013


Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ubuntu Wiki" for change notification.

The "DebuggingDBus" page has been changed by pitti:
http://wiki.ubuntu.com/DebuggingDBus?action=diff&rev1=6&rev2=7

Comment:
Update recipe to actually work on recent Ubuntu versions

  
  This is trickier, because D-Bus policy typically prevents anything but signals from being viewable by dbus-monitor.  But we can change that.
  
-  1. Create a file /etc/dbus-1/system.d/99-eavesdrop.conf, with these contents:
+  1. Create a file /etc/dbus-1/system-local.conf, with these contents:
   {{{
  <!DOCTYPE busconfig PUBLIC
  "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
  <busconfig>
- 	<policy user="root">
+     <policy user="root">
- 		<allow eavesdrop="true"/>
+         <allow eavesdrop="true"/>
+         <allow eavesdrop="true" send_destination="*"/>
- 		<allow eavesdrop="true"
- 		       send_type="method_call"
- 		       send_destination="*"
- 		       send_path="/org/freedesktop/DBus"
- 		       send_interface="org.freedesktop.DBus"
- 		       send_member="AddMatch"/>
- 	</policy>
+     </policy>
  </busconfig>
+  }}}
+  1. Reload D-BUS to pick up the configuration change:
+  {{{
+ sudo reload dbus
   }}}
   1. Now run dbus-monitor as root.  You should be able to see all signals, method calls, and method replies.
   {{{
@@ -43, +42 @@

   }}}
   1. When done debugging, it is wise to remove the policy snippet:
   {{{
- sudo rm /etc/dbus-1/system.d/99-eavesdrop.conf
+ sudo rm /etc/dbus-1/system-local.conf
   }}}
  
  = Filtering all the noise =



More information about the Ubuntu-bugsquad mailing list