Products › lamco-dbus-tools › Docs
dbus-broker and dbus-daemon: Two D-Bus implementations compared
dbus-broker and dbus-daemon compared, as measured: How a stalled monitor, a policy file, a match rule and a refused call each behave on the two implementations.
Describes version 0.4.1, from measurements of 2026-11-27 to 12-01 and a reading of both programs' source.
Two programs implement the bus on Linux desktops and servers. dbus-daemon is the original. dbus-broker is the default on Fedora and Arch, and Ubuntu announced the move for 26.10. Debian 13 ships dbus-daemon. They speak the same protocol and differ in ways that matter to anyone diagnosing or auditing a machine.
lamco-dbus-tools records which one a machine runs and what it supports, by asking, and reads everything else in that light.
Measured differences
| dbus-daemon 1.16.2 | dbus-broker 37 | |
|---|---|---|
| A monitor that stops reading | The sender stalls | The user's quota fills. The monitor, the sender and an unrelated program are disconnected |
| Per-connection counters | GetConnectionStats, one connection at a time |
GetConnectionStats refused, "unimplemented"; GetStats lists every peer's accounting in one answer instead |
| Every program's match rules | Answered | Refused |
| What it says it supports | Lists its features and interfaces | Lists one feature, and leaves out an interface it does implement |
| A call to a name nothing owns and nothing can start | One error name | A different error name |
| A call hidden by a Flatpak proxy | Not shown to a monitor | Shown, as a stand-in message |
dbus-monitor installed |
Yes, on Debian 13 | Not on Fedora 45 as installed. busctl is the stock monitor |
| Asked for its own credentials | Its own process | The process of its launcher, dbus-broker-launch |
Starting a service with only Exec= |
Forks it itself, and logs Activating service name=... and, on failure, Activated service ... failed: with the reason |
The launcher has the service manager start it as a transient unit, dbus-:<unique>-<name>@<n>.service; the manager logs the start and the exit, and the caller is told unit failed |
| A call its policy refuses | Logs Rejected send message with the caller, interface, member and destination, when it logs to the journal |
Logged nothing found in the journal, measured 2026-11-29 |
| A deny rule naming a member and neither interface nor path | Refuses the whole configuration and doesn't start | Accepts it |
| Many monitors starting at once, each asking for every connection's process descriptor | Answers them | The user's descriptor quota fills, and it disconnects monitors, a long-running one's among them |
| Its own messages' serials | Numbered for each recipient | 4294967295, every one |
The same policy file, two answers
One policy file was given to a private instance of each, with the same probes.
| Policy | Probe | dbus-daemon | dbus-broker |
|---|---|---|---|
| Deny by interface | A call that names no interface | Denied | Passed |
| An allow using an attribute dbus-broker doesn't know | A call the daemon denies | Denied | Passed |
| Allow owning one exact name | Owning a name below it | Denied | Granted |
| An allow that names only an error | An ordinary call | Passed | Passed |
| A deny inside a block for a user that doesn't exist | The call | Passed | Passed |
In all three differing cases dbus-broker is the more permissive. The last two rows are the same on both and surprising on both.
A policy file written and tested against one implementation can mean something else on the other. A distribution that changes its default changes what those files allow. The audit reports a policy file that reads differently on the two as a finding in itself.
The same match rule, two readings
A monitor's match rules say what it's given. Applied by each bus to the same traffic, 23 rules in a test of 2026-12-01, four read differently, each confirmed in the source (match rules):
destination: dbus-daemon applies it; dbus-broker never does, so a rule naming one takes everything else the rule takes. A recording of one service through dbus-broker takes the whole bus.path_namespace='/': Every path on dbus-daemon; only/itself on dbus-broker.- A backslash before a comma, unquoted: dbus-daemon keeps the comma in the value; dbus-broker ends the value there, as the specification says.
NameAcquiredfor a new name: dbus-daemon sends it before it records the owner, so a rule on that name asdestinationmisses it.
dbus-broker before 37 also read argN and argNpath against the zeroth argument in places, which its version 37 fixed. Ubuntu 24.04 ships dbus-broker 35, so the difference is on machines in use today.
dbuskeep applies each reader's rules as its bus would, and with --rules-as-specified as the specification
does, on either bus.
From source, not yet run
- dbus-broker starts every service through the service manager and enforces no time limit on a start. dbus-daemon has one, and logs when it's hit.
- dbus-broker prints no diagnostics about timeouts. Its maintainer has said this is by design. Where a distribution moves to it, the log line people search for stops appearing.
- Only root or the broker's own account may monitor a dbus-broker system bus. dbus-daemon decides by policy, which an administrator can widen.
- dbus-broker's refusal log has structured fields. dbus-daemon's is text.
A third
busd, a broker written in Rust, is in alpha. The toolkit treats the implementation as something detected with abilities that are probed, so another one needs a row in a table.