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.
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.
unsafe
|
MIT OR Apache-2.0
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.
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.
Split by what each may do
| Program | What it may do | When you run it |
|---|---|---|
| dbussee | Read and record. It calls only the bus itself, with the flag that forbids starting a service. | Any time, on any machine. |
| dbusdo | Call 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. |
| dbustell | Read capture files. It connects to nothing. | Anywhere, with no bus at all. |
| dbuskeep | Keep 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-monitor | Let 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.
D-Bus problems, followed to their causes
A calculator, and what its sandbox lets it reach
A client broken by a changed signature: Caught in the service's own CI
A command that's slow the first time
A crash reproduced from a recording, and handed over as a script
A desktop service that's slow to appear
A dialog that hangs now and then
A slow D-Bus call's tail caught in CI: The median didn't move
A package that opened the system bus to everyone
A policy file that reads differently after a switch to dbus-broker
A program kept off a bus
A service started too early: It runs without what the session set later
A slow call: The bus or the service?
A window that takes 15 seconds to open: Two programs waiting on each other
"Access denied" on the system bus: Which rule, and what to change
A Flatpak application that can't reach a service: The grant it lacks
An upgrade that slowed a call, and a capture to send upstream
Every finding, made to happen
Every D-Bus interface, implementation, policy layer and sandbox it reads
The bus itself
Bus implementations
Policy and services
Sandboxes
Files and formats
The kernel part
What dbussee check found on five desktops' own buses
| Desktop | Distribution | Bus implementation | Well-known names, session and system | Date |
|---|---|---|---|---|
| Xfce | Debian 13 | dbus-daemon 1.16.2 | 42 and 23 | 2026-11-28 |
| GNOME on Wayland | Fedora 45 | dbus-broker 37 | 76 and 31 | 2026-11-28 |
| KDE Plasma on Wayland, a minute after boot | KDE neon | dbus-daemon 1.14.10 | 11 and 20 | 2026-11-28 |
| KDE Plasma, three minutes after boot | KDE neon | dbus-daemon 1.14.10 | 64 on the session bus | 2026-11-28 |
| Sway on Wayland | Ubuntu 24.04 | dbus-daemon 1.14.10 | 9 and 22 | 2026-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.
Three commands
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.
Signed tarballs, or cargo install
| Tarball | What it is | What 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 Linux | Nothing |
| 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 Linux | Nothing |
Both are signed with the release key of Lamco Development LLC, fingerprint CA11F781516743D5D9A1A12F17B95B68A50CD3A7 (signing subkey 405CB1E36258DA1DA406A852A236DDB84E0EC96E). SHA256SUMS and SHA256SUMS.asc are on the release.
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.
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.
Open source toolkits from Lamco Development LLC
| Toolkit | Layer | Programs | State |
|---|---|---|---|
| lamco-rdp-tools | The RDP protocol, from the client's side | rdpsee, rdpdo | Shipped |
| lamco-dsi-tools | The desktop session's interfaces | dsisee, dsido, dsitell | Shipped, v0.4.2 |
| lamco-dbus-tools | D-Bus, the message bus under the Linux desktop and system | dbussee, dbusdo, dbustell, dbuskeep | Shipped, 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.