Products › lamco-dbus-tools › Interfaces
dbus-broker vs dbus-daemon: Where their policy reads differ
dbus-broker vs dbus-daemon differ in policy, match rules, monitoring and logs, as lamco-dbus-tools measured on dbus-broker 37 and dbus-daemon 1.16.2.
dbus-broker is the second implementation of the D-Bus message bus, written for Linux and started through its launcher, dbus-broker-launch. It's the default on Fedora and Arch, and Ubuntu announced the move for 26.10. It speaks the same protocol as dbus-daemon and reads the same policy files and service files, yet answers some of them differently. A machine that switches can find a policy file allowing more than it did, a recording of one service taking the whole bus, and a log line people search for no longer appearing. lamco-dbus-tools tells which implementation serves a bus and records where the two differ.
What it is
The launcher reads the XML configuration and the service files, and passes the policy on to the broker. When a service has to be started, the launcher has systemd start it: The unit its service file names, or, for a file with only Exec=, a transient unit of its own making, dbus-:<unique>-<name>@<n>.service. Where a start fails, the service manager logs the exit, and the caller is told unit failed.
The repository's measurements and its reading of both programs' source found these differences from dbus-daemon:
- Policy. A deny by interface doesn't catch a call that names no interface.
send_destination_prefix,send_error,receive_errorandlogaren't known and are dropped from the rule. An exactownrule also grants the names below it. A deny naming only a member is accepted, where dbus-daemon refuses to start. In all three probes that differed, dbus-broker was the more permissive. - Match rules. A rule's
destinationis parsed and never applied, andpath_namespace='/'matches only/. - Monitoring. Only root or the broker's own account may monitor its system bus. A monitor that stops reading fills the user's quota, and the monitor, the sender and an unrelated program are disconnected.
- Statistics.
GetConnectionStatsis refused as unimplemented,GetStatslists every peer's accounting at once, and every program's match rules can't be listed. - Identity. Asked for its own credentials, it gives its launcher's process. Its own messages all carry the serial 4294967295.
- Logs. In one measurement of 2026-11-29, a refusal by its own policy left no line that could be found in the journal. A refusal by SELinux was logged as "A security policy denied" with the sender, the call and the destination.
Errors you'll meet
org.freedesktop.DBus.Error.AccessDenied: Its policy, or a security module, refused the call. Where it logs, its line starts "A security policy denied".org.freedesktop.DBus.Error.ServiceUnknown: No owner and no service file. dbus-broker answersStartServiceByNameso for any name without a service file, owned or not.
How lamco-dbus-tools reads it
dbussee bus names the program serving the bus from the process behind it and its --version, following the credentials to dbus-broker-launch. dbussee audit collect reads the policy as dbus-broker reads it as well as dbus-daemon's way. dbusdo policy probe gives a file to a private dbus-broker, through its launcher and systemd-socket-activate. dbustell policy gives both verdicts, and dbustell errors joins dbus-broker's denial line to the error a caller got. On dbus-broker, --service takes everything, and the capture says so with BUS-004, unless dbuskeep applies the rules as the specification reads them.
dbussee bus # which implementation serves this bus, and how it knows
dbusdo policy probe --implementation both --probe "call com.example.Svc - Echo" mine.conf # one file, both daemons
dbustell policy audit.json --user alice --own com.example.Svc.Sub # granted on one, denied on the other?
dbustell errors rec.json # each refusal joined to the bus's own line
Where it has been run
The README's run record lists dbus-broker 37 on Fedora 45 with GNOME on 2026-11-28, on RHEL 10 with GNOME 49 over RDP on 2026-11-29, and on Manjaro with Plasma 6.8.2 on 2026-12-02. The policy evaluator's eleven cases agree with dbus-broker 37 and Fedora's 37-9 (2026-11-30). The test gate used an unpacked dbus-broker 37 on Debian 13 (2026-12-04), and an SELinux refusal on Fedora 44 was named by dbustell errors from dbus-broker's line (2026-12-02). dbus-broker releases other than 37, Debian's 37-2 and Fedora's 37-9, aren't recorded either way.
Findings
BUS-004: dbus-broker took messages to anyone for a rule naming a destination.POL-004: A policy file reads differently on the two bus implementations.POL-006: An at_console block, decided only at run time.ACT-006: A service was started outside the unit meant for it.
Related
- dbus-daemon, the other implementation.
- A policy that reads differently, after a switch to dbus-broker.
- Two bus implementations, every measured difference.
- The dbus-broker wiki.