Products › lamco-dbus-tools › Interfaces
xdg-dbus-proxy: How Flatpak filters D-Bus, and how to test a grant
xdg-dbus-proxy is the D-Bus filter Flatpak runs, taking --talk, --own, --see, --call and --broadcast, and lamco-dbus-tools tests a grant on the host's proxy.
xdg-dbus-proxy is the filtering proxy that stands between a sandboxed program and a D-Bus bus. Flatpak runs one for every application that isn't given a bus socket outright, and Firejail runs it for profiles that filter the session bus. Its options are the grant in its final form: Whatever an application's metadata says, this is what's enforced. A proxy's version number doesn't say which fixes it carries, since distributions patch without changing it. lamco-dbus-tools evaluates the filter, starts the host's own proxy with a grant in front of a private bus, and holds every decision it makes to the evaluator.
What it is
The proxy listens on a socket the sandbox is given, connects to the real bus, and passes or refuses each message by its options:
--filter: Filter at all. Without it the proxy passes everything.--see=NAME: The name is shown in name lists, its owner can be asked, and its owner changes are delivered.--talk=NAME: Calls to it pass, and its broadcasts are delivered. It holdssee.--own=NAME: It may be requested and released, and every call to it passes. It holdstalk.--call=NAME=RULEand--broadcast=NAME=RULE:talkfor calls, or broadcasts, matching the rule only. A rule is[*|INTERFACE.MEMBER|INTERFACE.*][@PATH|@PATH/*].--sloppy-names: Owner changes of every unique name are delivered.
A name ending in .* covers itself and every name below it: org.foo.* covers org.foo and org.foo.bar, never org.foobar. One subtlety matters in practice: A unique name takes the level of every well-known name the proxy saw it own, and keeps it after the name is released. So a grant of one name opens every other name of the connection that owns it. Toward the bus itself, Introspectable, Hello, GetId, ListNames and the like pass, AddMatch passes unless it asks to eavesdrop, and BecomeMonitor and UpdateActivationEnvironment are denied. Calls from peers to the application are all delivered: Every peer is trusted.
Three flaws in the filter were fixed in 2026: CVE-2026-34080, CVE-2026-93676 and CVE-2026-94422.
Errors you'll meet
org.freedesktop.DBus.Error.ServiceUnknown: A hidden name, belowsee, called with auto-start allowed. Hidden and nonexistent look the same.org.freedesktop.DBus.Error.NameHasNoOwner: A hidden name called with auto-start forbidden or by its unique name, orGetNameOwneron a hidden name, which the proxy answers itself.org.freedesktop.DBus.Error.AccessDenied: A name atseebut belowtalk, or a bus method the proxy refuses.org.freedesktop.DBus.Error.UnknownMethod: One of the answers recorded through the proxy in the calculator use case's probe.
How lamco-dbus-tools reads it
dbussee sandbox inside, run inside a sandbox, shows the bus as the program sees it: Its addresses, its environment and the names it's shown. dbusdo sandbox probe mirrors the real bus's names onto stand-ins on a private dbus-daemon, starts the host's proxy in front of it with the grant and --log, sends hundreds of probes through it, and holds each decision to the toolkit's own evaluator of the filter. It also tests the proxy for CVE-2026-34080, CVE-2026-93676 and CVE-2026-94422, and fails when any probe disagrees or a flaw is found. No service is called: The probes go to stand-ins. dbustell findings reads the probe's capture and gives SBX-003 for a flaw and SBX-006 for a disagreement.
dbussee sandbox inside # from inside: The bus and the names it shows
dbusdo sandbox probe --filter --talk=org.freedesktop.Notifications --own=org.example.App.* # a grant, on the host's proxy
dbusdo --out probe.json sandbox probe --instance 2358516867 # the options a running instance's proxy enforces
dbustell findings probe.json # SBX-003 for a flaw, SBX-006 for a disagreement
Where it has been run
The README's run record lists, on Fedora 45 with Flatpak 1.18.4 and xdg-dbus-proxy 0.1.9 (2026-11-29), 385 and 390 probes of an installed application's grant and its running proxy all agreeing. On private buses (2026-11-29), an application laid out as Flatpak lays it out, its proxy in bwrap, gave 74 and 765 probes agreeing: Debian's patched proxy was fixed for all three flaws, upstream 0.1.6 was flawed for all three, and upstream 0.1.8 for one. On Fedora 44 with GNOME Calculator (2026-12-02), a proxy's options were read back at each ptrace_scope from 0 to 3.
Findings
SBX-002: A running application's proxy enforces other options than its files give.SBX-003: The host's proxy failed a probe for a known flaw.SBX-005: A proxy's options couldn't be read back.SBX-006: The host's proxy and the evaluator of its filter disagreed.
Related
- Flatpak and D-Bus, where a grant's options come from.
- A calculator and what its sandbox lets it reach.
- Test one grant against the real proxy.
- xdg-dbus-proxy on GitHub.