D-Bus recording and diagnosis for Linux

lamco-dbus-tools

See what happens on D-Bus: Who called whom, how long each answer took and where the time went, what a policy file allows on each bus implementation, and what a sandboxed application may reach.

NEW · v0.4.1 Linux, x86_64 and 64-bit ARM

dbussee watches. dbusdo drives. dbustell analyzes. dbuskeep keeps the last minutes.

Open source, MIT OR Apache-2.0. Linux, x86_64 and 64-bit ARM. From Lamco Development LLC.

lamco-dbus-tools 0.4.1 | dbus-daemon and dbus-broker | x86_64 and 64-bit ARM, static | Rust, no unsafe | MIT OR Apache-2.0
WHAT IT IS

D-Bus monitoring and debugging that explains what it recorded

lamco-dbus-tools is an open source command-line toolkit from Lamco Development LLC that records D-Bus traffic without harming the bus, pairs every call with its answer, and explains the result.

Almost everything on a Linux desktop talks over D-Bus: The notification daemon, the file chooser, the network and power services, the login manager, and every sandboxed application through its proxy. When a window takes fifteen seconds to open, or a call fails with org.freedesktop.DBus.Error.AccessDenied, the bus saw exactly what happened. The usual tools show a stream of messages and leave the reading to you.

lamco-dbus-tools tells you what the record means: Which calls were left waiting and who waits on whom, how each method's answers are distributed, which rule refused a call and on which implementation, and what changed between two versions of a service.

A real output

A window that takes fifteen seconds to open, and why

Two programs each waited on the other. This is dbustell pending on the recording, verbatim, from a use case run on 2026-12-01 on Debian 13 on a bus of its own. The two programs are the use case's own, written to show the fault, not a real application.

dbustell pending
Of 11 messages, 3 calls were waiting for a reply when it ended:

      7.01 s  :1.13 -> com.example.Viewer (:1.1 python3 (2652006))
              com.example.Viewer.Open on /com/example/Viewer, serial 3
      7.01 s  :1.1 python3 (2652006) -> com.example.Thumbs (:1.2 python3 (2652005))
              com.example.Thumbs.Render on /com/example/Thumbs, serial 12
      7.01 s  :1.2 python3 (2652005) -> com.example.Viewer (:1.1 python3 (2652006))
              com.example.Viewer.Settings on /com/example/Viewer, serial 7

Who waits on whom:
  :1.13 -> :1.1 python3 (2652006) -> :1.2 python3 (2652005)

Waiting on each other, so none of them can answer:
  :1.1 python3 (2652006) -> :1.2 python3 (2652005) -> :1.1 python3 (2652006)

The same capture raised CALL-001, calls left without an answer, and CALL-002, callers that wait on each other in a ring. The output goes on to say what it can't see, such as a call made before the recording began. The whole use case has the script and every output.

WHY FIVE PROGRAMS

Split by what each may do

So you always know what you're running.
ProgramWhat it may doWhen you run it
dbusseeRead and record. It calls only the bus itself, with the flag that forbids starting a service.Any time, on any machine.
dbusdoCall methods, send signals, set properties, hold names, start services, replay a recording, put load on a bus. Every act is recorded with its timing.Deliberately, on a bus you mean to test.
dbustellRead capture files. It connects to nothing.Anywhere, with no bus at all.
dbuskeepKeep the last minutes of a bus with one monitor, so a fault can be taken after it happened. Its kernel part stamps every message at every socket.As a service, when faults come and go.
dbussee-monitorLet the members of one group record the system bus without root.Installed once, by an administrator.

A recorder that falls behind lets go of the bus before the bus has to act, and its capture says where it stopped. Doing no harm says what each bus does when a recorder can't keep up, measured.

INTERFACES COVERED

Every D-Bus interface, implementation, policy layer and sandbox it reads

Each has a page of its own: What it is, the errors you'll meet, and how the toolkit records, drives and explains it.

The bus itself

Bus implementations

Policy and services

Sandboxes

Files and formats

The kernel part

FROM REAL RUNS

What dbussee check found on five desktops' own buses

One run each, on virtual machines, on the date shown.
DesktopDistributionBus implementationWell-known names, session and systemDate
XfceDebian 13dbus-daemon 1.16.242 and 232026-11-28
GNOME on WaylandFedora 45dbus-broker 3776 and 312026-11-28
KDE Plasma on Wayland, a minute after bootKDE neondbus-daemon 1.14.1011 and 202026-11-28
KDE Plasma, three minutes after bootKDE neondbus-daemon 1.14.1064 on the session bus2026-11-28
Sway on WaylandUbuntu 24.04dbus-daemon 1.14.109 and 222026-11-28

The count of names depends on how long after login the check ran, as the two KDE neon rows show, so each row describes that moment, not the desktop. BUS-003, the dbus-daemon monitoring flaw fixed in 1.16.4, was reported on every dbus-daemon in the table. What has been run lists every run, what hasn't been run, and what no record covers either way.

It tells you what it rests on

  • Every finding names the records under it. What wasn't looked at is reported as not examined.
  • Every time is labeled with its clock, and a figure at the bus is never pooled with one at the caller.
  • The README lists what has been run, on which system and when, what hasn't, and what no record covers.

Before you share a capture

dbustell scrub removes every message body and replaces the host name, the user names in home directories, and mail addresses. Read a scrubbed capture before you post it. The security policy says what the scrub removes and what it can't find.

QUICK START

Three commands

Quick start
tar -xzf lamco-dbus-tools-0.4.1-x86_64-unknown-linux-musl.tar.gz
cd lamco-dbus-tools-0.4.1-x86_64-unknown-linux-musl

./dbussee check                                        # what this bus is, and its findings
./dbussee record --all --duration 5 --out first.json   # five seconds of everything
./dbustell timing first.json --by method               # each method's answers, as a distribution

dbussee check reads and changes nothing. Getting started goes step by step, and Time on a bus says what each figure holds.

GET THE TOOLS

Signed tarballs, or cargo install

Static programs with the kernel part, for x86_64 and for 64-bit ARM. They link no system library and need nothing installed. The ARM programs have run only under emulation.
TarballWhat it isWhat it needs
lamco-dbus-tools-0.4.1-x86_64-unknown-linux-musl.tar.gz
SHA-256 9d0b91054bb414118ffee130e5a3cbf57bdc5ab4054af64650badc7645127afa
Static programs, with the kernel part, for any x86_64 LinuxNothing
lamco-dbus-tools-0.4.1-aarch64-unknown-linux-musl.tar.gz
SHA-256 2c2234dc66999f74537cdf2e6dd1ace7a33f81c7f82908b51c5d5218883d4ac6
Static programs, with the kernel part, for any 64-bit ARM LinuxNothing

Both are signed with the release key of Lamco Development LLC, fingerprint CA11F781516743D5D9A1A12F17B95B68A50CD3A7 (signing subkey 405CB1E36258DA1DA406A852A236DDB84E0EC96E). SHA256SUMS and SHA256SUMS.asc are on the release.

Verify a download
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys CA11F781516743D5D9A1A12F17B95B68A50CD3A7
gpg --verify SHA256SUMS.asc SHA256SUMS            # the list is the one that was signed
sha256sum --check --ignore-missing SHA256SUMS     # the tarball you have is the one in the list

From crates.io

The tarballs need no compiler. cargo install builds the five programs from source instead, and needs Rust 1.89 or later.

Install from crates.io
cargo install lamco-dbus-tools                     # the five programs, without the kernel part
cargo install lamco-dbus-tools --features kernel   # with dbuskeep kernel

The default build needs nothing else. --features kernel compiles the in-kernel programs, and needs clang and libbpf's headers (clang and libbpf-dev on Debian and Ubuntu). cargo binstall lamco-dbus-tools takes a release's tarball in place of a build, and doesn't check its GPG signature as the steps above do. To install the helper setuid for the system bus, run sudo scripts/install-helper ~/.cargo/bin/dbussee-monitor from the repository. The crate is lamco-dbus-tools on crates.io.

Building from source needs Rust 1.89 or newer, and How to build has the static build, the build for 64-bit ARM and the kernel part.

PART OF A FAMILY

Open source toolkits from Lamco Development LLC

Lamco Development LLC builds its products on the plumbing of the Linux desktop: The remote desktop protocol, the interfaces a program uses to see and control a session, and the message bus underneath both. For each layer it publishes the instruments it built to understand that layer.
ToolkitLayerProgramsState
lamco-rdp-toolsThe RDP protocol, from the client's siderdpsee, rdpdoShipped
lamco-dsi-toolsThe desktop session's interfacesdsisee, dsido, dsitellShipped, v0.4.2
lamco-dbus-toolsD-Bus, the message bus under the Linux desktop and systemdbussee, dbusdo, dbustell, dbuskeepShipped, v0.4.1

It keeps the family's split of watching from acting, and adds two things of its own. It records without harming the bus, and it reads the policy and sandbox rules that decide who may reach what. It shares its capture format with lamco-dsi-tools 0.4.0, so each toolkit reads the other's captures.

Version, license, ownership

lamco-dbus-tools 0.4.1 is the first public release. It's written in Rust, with unsafe forbidden, and licensed MIT OR Apache-2.0. The eBPF program in kernel/ is GPL-2.0 OR MIT, as the kernel requires. Copyright Lamco Development LLC.

Links