Products › lamco-dbus-tools › Interfaces
dbus-daemon: Which version, what it logs, and BUS-003
dbus-daemon is the reference D-Bus message bus, and lamco-dbus-tools tells it apart, reads its refusal lines, and flags the monitoring flaw fixed in 1.16.4.
dbus-daemon is the original implementation of the D-Bus message bus, from the freedesktop.org project, and the one the specification calls the reference implementation. Among the systems lamco-dbus-tools has run on, Debian 13, KDE neon and Ubuntu 24.04 run it. Whether a machine runs it or dbus-broker changes what a policy file allows, what a monitor that falls behind does to the bus, and what lands in the journal. The toolkit works out which program serves a bus, from evidence rather than assumption, and reads everything else in that light.
What it is
One dbus-daemon process serves one bus. --system and --session choose the standard configuration, /usr/share/dbus-1/system.conf or session.conf, which include local overrides and, on the system bus, the XML files in /usr/share/dbus-1/system.d and, for administrators, /etc/dbus-1/system.d. The configuration sets the bus's limits, such as reply_timeout and the bytes it will hold for one connection, and its security policy in <policy> blocks.
The man page gives the order in which policy applies to a connection: context="default", then its groups, then its user, then at_console blocks, then context="mandatory". A later rule overrides an earlier one. It also says dbus-daemon checks SELinux (class dbus, permissions send_msg and acquire_svc) and AppArmor on each message routed and each name requested.
Starting services: dbus-daemon forks a service itself from its service file's Exec=, or with --systemd-activation asks systemd to start the unit the file names in SystemdService=. The repository's measurements of where it differs from dbus-broker:
- A monitor that stops reading stalls the sender.
- Asked for its own credentials, it gives its own process.
- A deny rule naming a member and neither interface nor path makes it refuse the whole configuration and not start.
- A deny by interface also catches a call that names no interface.
- When it logs to the journal, a refused call is logged as
Rejected send messagewith the caller, interface, member and destination. - Its own messages are numbered for each recipient.
Before 1.16.4, an unprivileged user could crash a system bus while a privileged monitor was attached to it. A distribution may have patched that without changing the version.
Errors you'll meet
org.freedesktop.DBus.Error.AccessDenied: The policy refused a call. The caller's error text leads with "Rejected send message, 1 matched rules", and the journal holds the bus's own line, as recorded:dbus-daemon[661]: [system] Rejected send message, 1 matched rules; type="method_call".org.freedesktop.DBus.Error.NoReply: The bus answered for a service that never did, because it left without answering or passed a limit such asreply_timeout.
How lamco-dbus-tools reads it
dbussee bus names the program serving the bus, read from the process behind it in /proc and from what that program prints for --version, and says how it knows. dbussee audit collect reads the configuration as dbus-daemon reads it. dbusdo policy probe gives a policy file to a private dbus-daemon, sends probes and holds each answer to the evaluator. dbustell policy gives the verdict on each implementation and the rule that decided. dbustell health raises BUS-003 for a version before 1.16.4, and dbussee record refuses to monitor such a system bus without --accept-known-flaw.
dbussee bus --bus system # dbus-daemon or dbus-broker, which version, and how it knows
dbussee audit collect --out audit.json # the policy as each implementation reads it
dbusdo policy probe --implementation daemon mine.conf # the file on a private dbus-daemon, every answer checked
dbustell policy audit.json --user alice --call org.freedesktop.hostname1 org.freedesktop.hostname1 SetHostname # the verdict and the rule
Where it has been run
The README's run record lists dbus-daemon 1.16.2 on Debian 13 with Xfce, and 1.14.10 on KDE neon with Plasma and on Ubuntu 24.04 with Sway, each checked on 2026-11-28. BUS-003 was reported on every dbus-daemon of those runs. The policy evaluator's eleven cases agree with dbus-daemon 1.16.2 (2026-11-30), and every step of scripts/gate ran on Debian 13 with dbus-daemon 1.16.2 on 2026-12-04. dbus-daemon releases other than 1.14.10 and 1.16.2 aren't recorded either way.
Findings
BUS-002: Which program is the bus could not be told.BUS-003: This dbus-daemon has the monitoring flaw fixed in 1.16.4.POL-004: A policy file reads differently on the two bus implementations.POL-007: A bus refuses its configuration, or a file isn't well-formed.CALL-003: The bus answered for a service that never did.
Related
- dbus-broker, the other implementation.
- A policy that reads differently, one file, two answers.
- Two bus implementations.
- The dbus-daemon(1) man page.