Products › lamco-dbus-tools › Docs
Find out which D-Bus implementation a machine runs
Find out which D-Bus implementation a machine runs, dbus-daemon or dbus-broker, and its version, on the session, system and accessibility buses, with dbussee.
Describes version 0.4.1.
What's needed
dbussee. No privilege. Layer 1: The bus is asked about itself, and no service is started.
The session bus
$ dbussee bus
Bus (session): dbus-daemon 1.16.2
Read from the process behind the bus, and what its program prints for --version.
Id: a3d9dbdf76383e711bd49e476b0b2435
Process: pid 1533348, /usr/bin/dbus-daemon
Features the bus lists: ActivatableServicesChanged, HeaderFiltering
Statistics: answered
Names that can be started: 62
The system bus
$ dbussee bus --bus system
Bus (system): dbus-daemon 1.16.2
Read from the process behind the bus. Its program is closed to this user, so the version is what the
file its command line names prints for --version: A file on disk, which an upgrade since the bus
started may have replaced.
Process: pid 715, started as /usr/bin/dbus-daemon (its program is closed to this user)
Features the bus lists: ActivatableServicesChanged, HeaderFiltering, SystemdActivation
Statistics: org.freedesktop.DBus.Error.AccessDenied
The system bus runs as another user, so some of what /proc holds about it is closed to an ordinary user.
The text says what it read in place of what it couldn't. The statistics line gives the bus's own error
name when it refuses.
The accessibility bus
Screen readers and other assistive programs talk over a bus of their own, beside the session bus.
$ dbussee check --bus a11y
Bus (accessibility): dbus-daemon 1.16.2
Names: 2 well-known, 18 connections, 2 names that can be started
Instrument: 30 questions to the bus itself, and 1 to org.a11y.Bus on the session bus to find this bus. None able to start a service
Address: Asked of org.a11y.Bus on the session bus
Its address is read from AT_SPI_BUS_ADDRESS when the session sets it. Otherwise dbussee asks the
service that launches the bus, org.a11y.Bus on the session bus, with the flag that forbids starting it.
That's a call to a service, layer 3, and the capture records it. When the launcher isn't running, the
accessibility bus is reported as not there, and the launcher isn't started.
How the program is told
The bus is asked for its own credentials, which name a process. That process's program is the bus:
dbus-daemon, or for dbus-broker, dbus-broker-launch, since dbus-broker answers for itself with its
launcher's process. The version is what the program prints for --version.
Keep it
dbussee bus --bus system --out system-bus.json
dbustell health system-bus.json
What can go wrong
Bus (session): Not examined.andno connection to the session bus: There's no session bus wheredbusseelooked. See using dbussee over ssh.busexits 1, since it didn't do its job.Its version could not be read: The program couldn't be run from wheredbusseeis, as when the bus runs in a container or a mount namespace of its own.