Products › lamco-dbus-tools › Use cases

What can a Flatpak app reach on D-Bus? GNOME Calculator's sandbox

What can a Flatpak app reach on the D-Bus session bus? GNOME Calculator's grant read with dbussee, held to xdg-dbus-proxy with dbusdo, and its traffic read.

A sandboxed application reaches the session bus only through xdg-dbus-proxy, and the question is what it may reach there and what it used. lamco-dbus-tools answered it with dbussee, which read the grant, dbusdo, which probed the running proxy's options against the real xdg-dbus-proxy, and dbustell, which read the application's traffic.

A real run on 2026-12-01 on Fedora 45 Workstation, GNOME logged in at the console, Flatpak 1.18.4 and xdg-dbus-proxy 0.1.9, with a development build of lamco-dbus-tools, version 0.1.0: GNOME Calculator 51.1, a real application, installed from Flathub for the user, started in the session, read, probed and uninstalled. run.sh ran it and run.txt is what it printed; out/ holds the inventory, the probe and the recording; traffic.txt is the recording read again by the build that names each unique destination's owner, which this run prompted.

The question

An application from Flathub runs in a sandbox, and reaches the session bus only through a filtering proxy that Flatpak starts for it. What may it reach there, is that what Flatpak says, does the proxy really hold to it, and what did the application actually use? Asked of a real application, here GNOME Calculator, with nothing installed but the application itself.

Its grant, as Flatpak reads it

$ dbussee sandbox list --out inventory.json
Flatpak: 2 applications
  io.lamco.rdp-server                          user    session: filtered, 6 options    system: filtered, 2 options
  org.gnome.Calculator                         user    session: filtered, 5 options    system: none
Running: 1 instances
  3714290007   org.gnome.Calculator                         proxy 35182  connections :1.657
...
$ dbussee sandbox show org.gnome.Calculator
org.gnome.Calculator (user, x86_64/stable), runtime org.gnome.Platform/x86_64/51

Layers, merged in this order:
  runtime                  .../flatpak/runtime/org.gnome.Platform/x86_64/51/active/metadata  (nothing about the buses)
  application              .../flatpak/app/org.gnome.Calculator/x86_64/stable/active/metadata  (nothing about the buses)

The session bus, through the proxy with:
  --filter
  --own=org.gnome.Calculator.*
  --own=org.mpris.MediaPlayer2.org.gnome.Calculator.*
  --call=org.freedesktop.portal.*=*
  --broadcast=org.freedesktop.portal.*=@/org/freedesktop/portal/*

The system bus: None.

Flatpak's own reading (flatpak info --show-permissions) is the same on the buses.

Running: instance 3714290007, application pid 35186
  proxy 35182 for unix:path=/run/user/1000/bus: --filter --own=org.gnome.Calculator.* ... : the same as read from the files
  proxy 35182 for unix:path=/run/user/1000/at-spi/bus: --filter --sloppy-names --broadcast=org.a11y.atspi.Registry=...
  its connections on the session bus: :1.657

The Calculator asks for nothing on the buses: Neither its metadata nor its runtime's mentions them. What it gets is what every Flatpak application gets: Its own names, the portals, and nothing on the system bus. The running instance's proxy was started with exactly the options read from the files, and its one connection on the session bus is :1.657. The proxy also filters the accessibility bus, which the inventory reads too.

Does the proxy hold to it?

The running instance's own options are given to the machine's own xdg-dbus-proxy, in front of a private bus of stand-ins, and probed. Nothing real is called:

$ dbusdo --out probe.json sandbox probe --instance 3714290007 --no-names --stand-in org.freedesktop.portal.Desktop,org.gtk.vfs.Daemon
xdg-dbus-proxy 0.1.9 with: --filter --own=org.gnome.Calculator.* --own=org.mpris.MediaPlayer2.org.gnome.Calculator.* --call=org.freedesktop.portal.*=* --broadcast=org.freedesktop.portal.*=@/org/freedesktop/portal/*
32 probes, 2 names mirrored by stand-ins on a private bus. The proxy's own log gives each decision.

32 of 32 calls as the evaluator said:
  Ping org.freedesktop.portal.Desktop                            passed         answered reply
  Ping org.gtk.vfs.Daemon                                        hidden         answered org.freedesktop.DBus.Error.NameHasNoOwner
  ...
  RequestName a name not granted                                 hidden         answered org.freedesktop.DBus.Error.ServiceUnknown
  AddMatch eavesdrop=true                                        denied         answered org.freedesktop.DBus.Error.AccessDenied
  AddMatch eavesdrop = 'true', with a space                      denied         answered org.freedesktop.DBus.Error.AccessDenied
  ...

Names shown: 4 of the bus's, as the evaluator said
Broadcasts: 0 of 1 reached the client

The proxy's known flaws, by behavior:
  CVE-2026-34080   fixed      An AddMatch with eavesdrop = 'true', a space before the equals sign, is refused
  CVE-2026-93676   fixed      A broadcast from a name with only a call rule, on a path and member no broadcast rule names, is filtered
  CVE-2026-94422   fixed      A method call carrying a reply serial, to a name not granted, isn't passed on as if it were a reply

The evaluator and the proxy agree on every probe.

--instance takes the options from the running proxy rather than the files. --no-names mirrors only the names the grant names, and --stand-in adds a connection owning each name given: The portal, which the grant lets it call, and org.gtk.vfs.Daemon, which it doesn't, so both sides are probed. Every decision the proxy made is what the toolkit's evaluator of its filter said, and Fedora's 0.1.9 is fixed for all three flaws of 2026. The whole run is in run.txt.

What it used

A recording of the whole session bus ran while the application started. Read against the inventory, which ties the proxy's connection to the application:

$ dbustell sandbox inventory.json --traffic rec.json
No sandbox findings.

org.gnome.Calculator (instance 3714290007), connections :1.657:
      16 calls to :1.55 (org.freedesktop.portal.Desktop)
      32 calls to org.freedesktop.DBus
       1 calls to org.freedesktop.portal.Flatpak

Starting, it asked the bus 32 questions, called the Flatpak portal once, and called the desktop portal 16 times, by its unique name. In the recording, those 16 are 5 Settings.Read and one ReadAll (the theme, the colour scheme), 4 ProxyResolver.Lookup, one NetworkMonitor.GetStatus, one Inhibit.CreateMonitor and 4 Properties.GetAll, all on /org/freedesktop/portal/desktop; reading a capture by hand shows the query. There are no findings: The grant is the default one and nothing more, so nothing is granted and unused (SBX-004), and nothing reaches past the sandbox (SBX-001).

Found while writing this page

The traffic lens first printed 16 calls to :1.55: The application calls the portal by the unique name GLib resolved, and the lens didn't say whose it was, though it had worked out the owner to judge which grants were used. It now names each unique destination by the well-known names its owner held, and a test calls a granted service by its unique name and fails without the fix.

Cleaning up

The script uninstalls the application, its data and the runtime it pulled in. The first run left Flatpak's session helper and portal running as user services the bus had started; the script now stops every user service the run started, by comparing the list before and after. Run with ./run.sh BIN as a user logged in at a GNOME desktop, BIN holding the static programs.

Related