Today we're introducing lamco-dbus-tools, five open source D-Bus debugging tools for Linux from Lamco Development LLC. They show who called whom on the bus, how long each answer took, which rule refused a call, and what a sandboxed application may reach. They're for the people who write desktop applications and system services that talk over D-Bus, the people who maintain distributions, sandboxes and Flatpak applications, and administrators chasing "access denied" on the system bus.
lamco-dbus-tools is an open source command-line toolkit that records D-Bus traffic without harming the bus, pairs every call with its answer, and explains the result. Version 0.4.0, the first public release, is on GitHub Releases now.
Here's what it said about a window that takes 15 seconds to open. This comes from one of the
toolkit's use cases, run on Debian 13 on a bus of its own (dbus-run-session), and the viewer and
the thumbnailer in it are made-up programs written for the page, not a real application:
$ dbustell pending caught.json
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 window asked the viewer to open a file. The viewer asked the thumbnailer for a thumbnail and blocked while it waited. The thumbnailer, to render it, asked the viewer for its settings and waited too. Neither could answer, so the two held each other until the thumbnailer's own timeout gave up. Nothing crashed, and no log said a word.
The bus saw all of it. Now you can read what it saw.
That capture came from a ring: dbussee kept the last 60 seconds of the bus in memory and wrote
them out once a call had waited five seconds. The findings name the same thing as CALL-002,
"Callers wait on each other in a ring", with the records under it. The output also says what it
can't see, such as a call made before the recording began or a caller that gave up, and
the use case has the
whole run, that part included.
The product page collects everything, and the documentation starts with getting started.
Why D-Bus debugging needs more than a stream of messages
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 call is slow, hangs or is refused, the bus saw exactly what happened.
The tools that exist show the stream of messages and leave the reading to you. A message carries no time and no state, so whoever wants to know that a call is waiting has to have seen it sent, and has to match it to an answer that may never come. lamco-dbus-tools does that matching and says what the record means.
The D-Bus interfaces it covers
These are the interfaces and surfaces lamco-dbus-tools reads, drives or tests. Each one has
a page of its own that says what
dbussee records from it, what dbusdo does with it, and what dbustell reads.
- The bus itself: It asks the bus driver,
org.freedesktop.DBus, for its names and owners, and reads every connection's credentials throughGetConnectionCredentials,GetConnectionUnixProcessIDandGetConnectionUnixUser. It records throughorg.freedesktop.DBus.Monitoring.BecomeMonitorand takes any match ruleAddMatchtakes. It polls the bus's own counters inorg.freedesktop.DBus.Debug.Stats, and it finds a service started beforeUpdateActivationEnvironmentset what that service needs. - A service's interfaces: It reads
org.freedesktop.DBus.Introspectableand introspection XML, setsorg.freedesktop.DBus.Properties, callsPingonorg.freedesktop.DBus.Peer, and finds the accessibility bus throughorg.a11y.Bus. - Bus implementations: It names dbus-daemon and dbus-broker from the process behind the bus, and records where the two differ.
- Policy and services: It reads
D-Bus policy files
(
/usr/share/dbus-1/system.d,<busconfig>,<policy>) as each implementation reads them, service files and their systemd units (org.freedesktop.systemd1), polkit actions and rules (org.freedesktop.PolicyKit1), the AppArmor and SELinux D-Bus rules andUSER_AVCdecisions, and the bus's lines in the journal. - Sandboxes: It reads each Flatpak
application's grant (
--talk-name,--own-name), tests the host's ownxdg-dbus-proxyagainst a grant, and reads the D-Bus rules of Snap and Firejail profiles. - Files and formats: It reads and writes the
pcap and pcapng files of
busctl captureanddbus-monitor --pcap, which Wireshark opens, and writes JUnit and SARIF 2.1.0 reports for CI. - The kernel part: It stamps each message with
eBPF on the bus's sockets
(
CAP_BPFandCAP_PERFMON), and refuses chosen connections to a bus through the bpf security module (unix_stream_connect).
Five programs, split by what each may do
The split isn't by feature. It's by what each program is allowed to do, so you always know what you're running.
| 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 | 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 |
dbussee has 14 commands, dbusdo 17, dbustell 17, dbuskeep 4 and dbussee-monitor 1. Each
command has a reference page, and each program has a man page.
The five programs goes through
the split in full.
dbussee: A D-Bus monitor that lets go before it harms the bus
A recorder that falls behind lets go before the bus has to act, and its capture says where it
stopped. That's the first rule of
dbussee, and
doing no harm says what each bus
does when a recorder can't keep up. Every message dbussee sends goes to the bus itself and carries
the flag that forbids starting a service, and a monitor sends nothing at all once it's one.
The first command asks a bus what it is:
$ dbussee check
Bus (session): dbus-daemon 1.16.2
Read from the process behind the bus, and what its program prints for --version.
Names: 42 well-known, 57 connections, 62 names that can be started
Instrument: 149 questions, all to the bus itself and none able to start a service
Findings: 0 problems, 1 notices
BUS-003 (notice): This dbus-daemon has the monitoring flaw fixed in 1.16.4
...
From there it records a service, whatever a match rule takes, or everything. It keeps a recording
in memory, streams it to disk, or holds a ring of the last seconds and writes it when an error or a
call left waiting fires it. --pcap writes the bytes beside the recording for Wireshark. It also
reads who's on the bus with each connection's process and control group, a running service's
interfaces without starting it, the policy as both implementations read it, and every sandboxed
application's grant.
The system bus is root's to monitor. dbussee-monitor lets the members of one group record it
anyway: Installed setuid, it connects only to the system bus's own socket, checks that its caller is
in the group, and refuses a dbus-daemon older than 1.16.4 unless it's told to accept that release's
known flaw. Record the system bus as an ordinary user
and the helper's page say what it does
with its privilege, step by step.
dbustell: Debug slow D-Bus calls, waits and errors from the record
dbustell reads
capture files and connects to
nothing, so it works later, on another machine, with no bus at all.
pendinggives the calls left waiting, who waits on whom, and the rings among them.timingpairs every call with its answer and gives each method's answers as a distribution, with the floor. Every time is labeled with where it was taken, and a figure at the bus is never pooled with one at the caller. Time on a bus says what each one holds.errorskeeps the bus's own errors apart from the services', and joins each to the log line that explains it, dbus-broker's denial and SELinux's decision included.activationfollows each service start from the request to the name being taken, or to the reason it failed in the words of whoever logged it.driftcompares two descriptions of a service and sorts every change as breaking, for new clients only, or information. It exits 1 on a break, and--junitwrites the report CI reads.auditandpolicyread a machine's whole bus policy.audit --sarifwrites SARIF 2.1.0.
Behind them sits a catalog of 57 findings
in 10 families, such as ACT for service activation and SBX for sandboxes, each with an identifier
that keeps its meaning. Every finding names the records under it, and what wasn't looked at is
reported as not examined.
dbustell timing first.json --by method # each method's answers, as a distribution
dbustell drift old.xml new.xml --junit drift.xml # exits 1 on a breaking change
dbustell scrub capture.json --out scrubbed.json # for a bug report, after you've read it
That last line matters before anything leaves your machine. dbustell scrub removes every message
body and replaces the host name, the user names in home directories, and anything shaped like a mail
address. The security policy
lists what it replaces. Read a scrubbed capture before you post it.
The CI how-to and a client broken by a changed signature show drift catching a changed signature in the service's own CI, before an old client meets this:
Error: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Type of message, “(s)”, does not match expected type “(su)”
dbusdo: Drive the bus, and record every act
dbusdo acts on a bus on
purpose and writes a capture of exactly what it did. It calls methods (--repeat gives the
distribution at the caller), sends signals, sets properties, holds names, and starts a service by
StartServiceByName, timed to the name having an owner. It replays the calls of a recording and
fails when any ends differently. That's how
a crash reproduced from a recording
brought back "Message recipient disconnected from message bus without replying", the
org.freedesktop.DBus.Error.NoReply the bus answers for a service that leaves without replying, and
handed the crash over as a script.
Two of its commands test the rules that decide who may reach what. policy probe gives a policy
file to each real daemon on a private bus and holds every answer to the toolkit's evaluator.
sandbox probe starts the host's own xdg-dbus-proxy with a grant, sends hundreds of probes
through it, and tests it for CVE-2026-34080, CVE-2026-93676 and CVE-2026-94422.
That's the path for a Flatpak application that can't reach a service, where all the application gets back is this:
Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
dbussee sandbox show reads the grant, and the probe finds the name the application lacks.
Test one grant against the real proxy
walks through it.
dbuskeep: The minute before a fault
Some faults come and go, and they're over by the time anyone looks.
dbuskeep keeps the last minutes of a
bus with one monitor, so the recording can be taken after it happened:
dbuskeep run --window 120 &
dbussee record --service com.example.Dialogs --ring 60 --now --after 0 --out ring.json
dbustell pending ring.json
A dialog that hangs now and then is that case, run for real.
Its kernel part answers the question every slow call raises: Is it the bus or the service?
dbuskeep kernel loads eBPF programs on the kernel's local stream socket functions with two
capabilities, CAP_BPF and CAP_PERFMON, and no root. It stamps each message at each socket as the
kernel passes it, and dbustell timing --caller --split gives every leg of a call: At the caller,
at the bus, and at each socket.
A slow call: The bus or the service?
shows the split, and
enable the kernel part
sets it up.
"Access denied" on the system bus, on dbus-daemon and on dbus-broker
When the system bus refuses a call, the caller sees something like this:
Error: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.123" (uid=1000 pid=2095 comm="gdbus call --system --dest com.example.Backup --ob") interface="com.example.Backup" member="Start" error name="(unset)" requested_reply="0"
The bus says one rule matched, and not which one, nor in which file. dbustell policy says which:
It reads the policy as each implementation reads it, keeps every rule's file and line, and answers
whether a user may send a call or own a name, on each.
That matters because dbus-daemon and dbus-broker read some policy files differently. Here's a file of a common shape, one that allows every user the service and denies one method by its interface, asked about a call that leaves the interface out:
$ dbustell policy audit.json --user "$USER" --call com.example.Printer - Reset
dbus-daemon: denied, by root/usr/share/dbus-1/system.d/com.example.Printer.conf:7 <deny send_destination="com.example.Printer" send_interface="com.example.Printer.Admin" send_member="Reset"/>
dbus-broker: allowed, by root/usr/share/dbus-1/system.d/com.example.Printer.conf:6 <allow send_destination="com.example.Printer"/>
dbusdo policy probe then gives the same file to both real daemons, and the evaluator agreed with
every daemon on every probe. The service and its file are made up for the use case.
"Access denied" on the system bus,
a policy file that reads differently after a switch to dbus-broker,
and two bus implementations
go further.
Where it has been run
The README's run record is the authority, and it keeps three lists apart: What has been run, what hasn't, and what no record covers. What has been run keeps the same record on the site, with its dates.
It has been run on real session and system buses on Debian 13 (Xfce), Fedora 44 and 45 (GNOME), Ubuntu 24.04 (Sway), KDE neon and Manjaro (KDE Plasma), and RHEL 10 (GNOME over RDP), between 2026-11-28 and 2026-12-04, almost all of it on virtual machines. That covers dbus-daemon 1.14.10 and 1.16.2, and dbus-broker 37. The kernel part ran on Debian 13, Fedora 44 and 45 and Ubuntu 24.04 on x86_64, and on emulated Debian 13, Fedora 44 and Ubuntu 24.04 on 64-bit ARM. The sandbox readings ran against Flatpak 1.18.4 with xdg-dbus-proxy 0.1.9 on Fedora 45, and a Snap and a Firejail profile on Ubuntu 24.04. An SELinux refusal was read on Fedora 44, enforcing. Trial tarballs, built by the release process from the same container as the release, ran on Fedora 44, Ubuntu 26.04 and emulated Debian 13 on 64-bit ARM on 2026-12-04. The signed release tarballs themselves ran before release: x86_64 on Fedora 44 and aarch64 on emulated Debian 13, every step passing.
As of 2026-12-04, it hasn't been run on any BSD or on any 64-bit ARM hardware. No record covers dbus-daemon releases other than 1.14.10 and 1.16.2, dbus-broker releases other than 37, or a system bus on a distribution not named above, so take those as not run.
A few questions, answered
How do I find out why a D-Bus call is slow? Record the bus with dbussee record while the call
happens, then run dbustell timing on the capture for each method's answers at the bus. With
dbusdo making the calls and the kernel part loaded, dbustell timing --caller --split splits each call
into the time at the caller, at the bus, and at each socket.
How do I see which D-Bus calls are waiting on each other? Run dbustell pending on a capture
that saw the calls sent. It lists the calls left waiting, who waits on whom, and any ring in which
none of them can answer.
Why does the system bus say access denied, and which rule decided? The bus counts the rules that
matched without naming one. dbustell policy names the file, the line and the rule, on dbus-daemon
and on dbus-broker.
How do I check what a Flatpak application may reach on D-Bus? dbussee sandbox show reads its
grant, with Flatpak's layers merged in order, and dbusdo sandbox probe tests that grant against the
host's own xdg-dbus-proxy.
How do I monitor the system bus without root? Install dbussee-monitor once, and the members of
its group can record the system bus with dbussee --bus system record --all.
A family of open toolkits, and a shared capture format
lamco-dbus-tools is the third of our open toolkits, after lamco-rdp-tools (its introduction) and lamco-dsi-tools (its introduction). Each covers a layer we work in, and each splits the program that watches from the program that acts.
It shares its capture format with lamco-dsi-tools 0.4.0: One JSON document, or lines of JSON for a long run. Each toolkit reads the other's captures, and this one was tested on 59 captures of lamco-dsi-tools. A desktop's portal and its bus can sit in the same kind of file.
Try it
Download a tarball from the releases page, verify it, and run three commands:
gpg --verify SHA256SUMS.asc SHA256SUMS
sha256sum --check --ignore-missing SHA256SUMS
tar -xzf lamco-dbus-tools-0.4.0-x86_64-unknown-linux-musl.tar.gz
cd lamco-dbus-tools-0.4.0-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
There are two tarballs, for x86_64 and for 64-bit ARM. The programs in both are static, with the
kernel part built in, so they need nothing else. The ARM programs have run only under emulation. The release
key's fingerprint is CA11F781516743D5D9A1A12F17B95B68A50CD3A7. It's written in Rust with unsafe
forbidden. Building from source needs Rust 1.89 or later, and
building has the details. It's MIT OR
Apache-2.0.
Our line is Complex Tech, Simple Tools, and here's what it means on D-Bus: The bus under a Linux desktop carries dozens of names, two implementations, and a stack of policy and sandbox rules. The tool is one command that asks the bus what it is. If you run it on a bus the record doesn't list yet, we'd like to hear what it found: Open an issue on the repository.