Products › lamco-dbus-tools › Use cases
BUS-001 to SBX-006: 32 dbustell findings, each made to happen
BUS-001 to SBX-006: 32 of the 57 dbustell findings made to happen on purpose on dbus-daemon and dbus-broker, each with the output the toolkit printed for it.
Each finding here is made to happen on purpose, from something small and known, so a reader who meets one
knows what it means. lamco-dbus-tools printed each one: dbussee recorded and read the buses and the
policy tree, dbusdo drove the made-up programs and probed the proxy, and dbustell gave the
findings.
Written by readme.py from a real run on 2026-12-01 on Debian 13, against private dbus-daemon 1.16.2
and dbus-broker 37 buses, with a development build of lamco-dbus-tools, version 0.1.0. run.sh ran it,
actors.py is the made-up programs, not a real application, old.xml and new.xml the two
interface descriptions, policy/ the crafted files, and run.txt what it printed, quoted
below as it was.
A finding is only worth reading if it means what it says. This page makes each one happen on purpose, from
something small and known, and shows what the toolkit said: 32 of the catalog's 57 here, the
rest in the use cases and measurements the coverage table names. Two can't be
made on a test machine: AUD-007 needs a live system service whose owner runs in another unit than its files
name, and SBX-005 a running Flatpak whose proxy's options can't be read back.
Paths like /var/tmp/every-finding.XXXXXX are the run's own scratch directory.
BUS-001: No bus answered
A recording or a snapshot of a bus that isn't there still writes a capture, and says why there was nothing to read. Made by giving an address where no bus listens.
capture written to /var/tmp/every-finding.aoH3Av/nobus.json
BUS-001 (notice): No bus answered
no connection to the address unix:path=/var/tmp/every-finding.aoH3Av/nothing-here bus: failed to connect to `unix:path=/var/tmp/every-finding.aoH3Av/nothing-here`: No such file or directory (os error 2)
BUS-002: A bus run by a program this build doesn't know
The toolkit tells dbus-daemon from dbus-broker by the program behind the bus. Made by running dbus-daemon itself under another file name, a-bus.
capture written to /var/tmp/every-finding.aoH3Av/other.json
BUS-002 (notice): Which program is the bus could not be told
The process behind the bus: a-bus (not a bus this build knows).
NAME-001: A bus that won't say who is behind a connection
A bus whose policy refuses GetConnectionCredentials won't say who is behind each connection, the bus's own included, so BUS-002 comes with it here for that reason. A connection is on the bus, the queue of NAME-002, so there is someone to ask about.
capture written to /var/tmp/every-finding.aoH3Av/nocreds.json
BUS-002 (notice): Which program is the bus could not be told
The process behind the bus: not known (the bus answered org.freedesktop.DBus.Error.AccessDenied).
NAME-001 (notice): The bus would not say who is behind a connection
2 of 2 connections, the first :1.0 (org.freedesktop.DBus.Error.AccessDenied).
Records: 10, 11
NAME-002: Connections waiting for a name
Two connections of one program asked for one name without giving up their place: The second waits behind the first.
capture written to /var/tmp/every-finding.aoH3Av/queue.json
NAME-002 (notice): A name has connections waiting to take it
com.example.Queue is owned by :1.0 and one connection is waiting: :1.1.
NAME-003, NAME-004, CALL-003, CALL-005, SIG-001: One recording
One recording of a busy few seconds: A call answered after 1.2 s at the bus (CALL-005); a call to a service that exits without answering, which the bus answers with NoReply (CALL-003); dbusdo own --replace taking the slow service's name, which allowed replacement, and giving it up a second later (NAME-003, then NAME-004 for both names, the leaver having exited); and 300 signals in one second (SIG-001).
capture written to /var/tmp/every-finding.aoH3Av/busy.json
CALL-003 (problem): The bus answered for a service that never did
1 calls ended in NoReply from the bus, since the service left without answering or a time limit passed: com.example.Leaver com.example.Leaver.Go.
Records: 36
CALL-005 (notice): A call took a second or more
1 calls took a second or more, the longest com.example.Slow com.example.Slow.Wait at 1.20 s.
Records: 23, 24
NAME-003 (notice): A name changed hands
1 names passed from one owner to another: com.example.Slow.
Records: 45, 50
NAME-004 (notice): A name was lost and not retaken
2 names had an owner and had none at the end: com.example.Leaver and com.example.Slow.
Records: 33, 50
SIG-001 (notice): A signal came in a storm
:1.7 sent 300 io.lamco.DbusTools.Load.Tick at /io/lamco/DbusTools/Load in one second.
Records: 357
NAME-005: A connection that stopped reading
A connection that asked for every signal and was then held stopped, while 5,000 signals of 2 KiB a second for three seconds were sent: The bus held what it wasn't reading. SIG-001 comes with it, for the load.
capture written to /var/tmp/every-finding.aoH3Av/deaf.json
NAME-005 (problem): A connection isn't reading what's sent to it
The bus held 31.1 MiB at most for :1.0, process python3 (2582964) to read, over 10 polls. A program that stops reading makes the bus hold what's sent to it, and past the bus's limit stall its senders or cut them off.
Records: 15108, 15109, 15110, 15111, 15112, 15113, 15114, 15115 and 2 more
INS-002: A recording that ended before it was asked to
The recorder reads through its helper and is held stopped while 20 MB of signals pass. The helper, still reading, holds them for it past the recorder's budget of 1 MiB and lets go, as it's there to: The recording ends at the message where it let go, and is whole up to there.
capture written to /var/tmp/every-finding.aoH3Av/detach.json
INS-002 (notice): The recording ended before it was asked to
The recorder detached itself at message 264: 1048268 bytes waited to be written, past its budget of 1048576. The capture is whole up to there.
Records: 277
INS-001, INS-004: A capture imported from a standard capture file
A recording's messages written beside it as a standard capture file, then imported: The file's stamps are its writer's wall clock, and it names no machine or boot, so the imported capture names none either.
capture written to /var/tmp/every-finding.aoH3Av/pcap.json
capture written to /var/tmp/every-finding.aoH3Av/imported.json
INS-001 (notice): The capture does not fully name its clock
The machine, the boot or the clock's id is missing, so this capture's times can't be set against another's.
INS-004 (notice): The times are another tool's wall clock
The messages' times are the wall clock of the tool that wrote the imported file. A figure across a jump of that clock is wrong, and the file says nothing of which machine it came from.
INS-003: Messages missing from a recording, a capture edited by hand
No test has seen the instrument lose a message, and none was made to. The finding is shown on the recording of the section before, with one message record taken out by jq: It's what the finding says when positions in what the monitor read have no record.
INS-003 (problem): Messages are missing from the recording
1 positions in what the monitor read have no record.
DRIFT-001, -003, -004, -006, -007, -008, -009, -012: Two descriptions of one interface
Two descriptions of one interface, old.xml and new.xml, made to differ by one change of each kind. DRIFT-002, -005 and -011 are shown by the changed-signature use case.
Breaking, 7:
DRIFT-008 com.example.Catalog method Forget: it no longer replies, so callers waiting for one wait until their timeout
DRIFT-003 com.example.Catalog signal Added: removed
DRIFT-006 com.example.Catalog property Count: its type is x where it was u
DRIFT-004 com.example.Catalog property Owner: removed
DRIFT-007 com.example.Catalog property Mode: its access is read where it was readwrite
DRIFT-009 com.example.Catalog property Shelf: EmitsChangedSignal true to false: it stopped emitting PropertiesChanged, so a client waiting for a change never hears of one
DRIFT-001 com.example.Old: removed
Information, 1:
DRIFT-012 com.example.Catalog method Find: in argument 1 renamed from title to name
8 changes, 7 breaking. Interfaces were compared by name; --objects compares the objects of two live trees too.
DRIFT-010: An object removed, between two live readings
A service exporting two objects, read with introspect, then the same service exporting one, read again: --objects compares the objects of two live readings.
capture written to /var/tmp/every-finding.aoH3Av/two.json
capture written to /var/tmp/every-finding.aoH3Av/one.json
Breaking, 1:
DRIFT-010 /com/example/Shelf/2 com.example.Shelf: the object is gone, so a client that calls it at its path finds nothing there
1 changes, 1 breaking. Objects were compared too.
POL-002, POL-005, POL-006, POL-007, AUD-004: A crafted policy tree
A tree of files read with audit collect --root --no-bus: The machine's own system.conf, a passwd and group naming root and messagebus, and the files of policy/: One letting every user send to every name, one for a user the tree hasn't got, an at_console block, one that isn't well-formed, and a system service file whose name isn't its bus name. The file letting everyone send also owns a name with a rule dbus-broker reads more widely, so POL-004 comes too.
POL-005 A policy block for a user or group this machine lacks is dropped whole: /var/tmp/every-finding.aoH3Av/root/usr/share/dbus-1/system.d/com.example.Absent.conf:3: The block for no user no-such-user-here here, so its 1 rules don't apply, a deny among them or not.
POL-002 Every user may send to every name on the system bus: /var/tmp/every-finding.aoH3Av/root/usr/share/dbus-1/system.d/com.example.Everyone.conf:4: <allow send_destination="*"/> lets every user send to every name on the system bus.
POL-006 An at_console block, decided only at run time: /var/tmp/every-finding.aoH3Av/root/usr/share/dbus-1/system.d/com.example.Console.conf:3: An at_console block, which applies by whether a user has a seat, known only at run time; dbus-broker marks it deprecated.
POL-004 A policy file reads differently on the two bus implementations: /var/tmp/every-finding.aoH3Av/root/usr/share/dbus-1/system.d/com.example.Everyone.conf: line 3: <allow own="com.example.Everyone"/> also grants the names below it on dbus-broker.
POL-007 A bus refuses its configuration, or a file isn't well-formed: /var/tmp/every-finding.aoH3Av/root/usr/share/dbus-1/system.d/com.example.Broken.conf:4: not well-formed, the rest skipped: ill-formed document: expected `</allow>`, but `</busconfig>` was found
AUD-004 A system service file whose name isn't its bus name: /var/tmp/every-finding.aoH3Av/root/usr/share/dbus-1/system-services/com.example.Wrong.service: Its name is com.example.Right, and dbus-daemon's activation helper finds a service by its file's name. Lintian calls it dbus-system-service-wrong-name.
BUS-004: --service on dbus-broker
dbus-broker 37 never applies a match rule's destination (match rules), so --service, which is sender or destination, takes everything there: The recorder says so before it begins, and the capture gives BUS-004. dbus-broker is started as the tests start it, from LAMCO_DBUS_BROKER_DIR when it's unpacked there.
Note: This bus is dbus-broker, which never applies a rule's destination, so `destination='com.example.Slow'` will take messages sent to anyone, and --service everything. With dbuskeep keeping the bus, --rules-as-specified applies it as the specification says.
2 messages recorded. Stopped: the duration ran out.
BUS-004 (notice): dbus-broker took messages to anyone for a rule naming a destination
destination='com.example.Slow': dbus-broker never applies a rule's destination, so each took every message the rest of it takes, sent to anyone. --service NAME is sender='NAME' or destination='NAME', so it takes everything here. With dbuskeep keeping the bus, --rules-as-specified has the service apply destination as the specification says.
SBX-003, SBX-006: A proxy with known flaws
The flaw probes of dbusdo sandbox probe against xdg-dbus-proxy 0.1.6, built for the test: It has all three flaws. The toolkit's evaluator of a proxy's filter models the fixed proxy, so the flawed one decides a probe otherwise, and SBX-006 says so: The finding for a proxy the evaluator doesn't match.
sandbox probe --proxy /var/tmp/s2/proxy-0.1.6/xdg-dbus-proxy -- --filter --talk=com.example.Allowed: 1 probes disagreed, 3 flaws found
SBX-003 (problem): The host's proxy failed a probe for a known flaw
xdg-dbus-proxy 0.1.6. The probe found the flaw, so the fix isn't in it: CVE-2026-34080: An AddMatch with eavesdrop = 'true', a space before the equals sign, is refused; CVE-2026-93676: A broadcast from a name with only a call rule, on a path and member no broadcast rule names, is filtered; CVE-2026-94422: A method call carrying a reply serial, to a name not granted, isn't passed on as if it were a reply.
Records: 0
SBX-006 (problem): The host's proxy and the evaluator of its filter disagreed
xdg-dbus-proxy 0.1.6: 1 probes. The proxy has a flaw or a change the evaluator doesn't model; the probe's report says which probes.
Records: 0
Running it
./run.sh /path/to/the/binaries /path/to/xdg-dbus-proxy-0.1.6
./readme.py
It needs dbus-daemon, dbus-broker (installed, or unpacked where LAMCO_DBUS_BROKER_DIR says, with bwrap),
Python with GObject introspection, jq, and for the last section a build of xdg-dbus-proxy 0.1.6. Everything
it starts it stops, and it removes its scratch directory.