Products › lamco-dbus-tools › Docs
List what each Flatpak application may reach on D-Bus buses
List what each Flatpak application may reach on the D-Bus session and system buses: Its grant merged from every layer, its running proxy, and the names it used.
Describes version 0.4.1. Run again on the final build on 2026-12-02, on Fedora 45 with
Flatpak 1.18.4 and GNOME Calculator from Flathub (docs/measurements/stage-13/sandbox/).
Needs dbussee and the files, readable as yourself. Layer 0 for the grants, layer 1 for tying a running
application's connections, which asks the bus one question for each connection. Nothing is started.
Every application
$ dbussee sandbox list
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
2358516867 org.gnome.Calculator proxy 3020 connections :1.95
Snap: 0 profiles, 0 with D-Bus rules
Firejail: 0 profiles; the session bus filtered in 0, closed in 0, left whole in 0
That's Fedora 45 with Flatpak 1.18.4, two applications installed and the calculator running. For each application, what it reaches on each bus:
- The whole bus: The application is given the real socket,
--socket=session-bus, and may do everything you may. - Filtered: Through the proxy, with that many options.
- None: No bus.
A running instance's proxy is found among your processes, and each connection whose process the bus names as that proxy is the application's. That's how a host monitor's view of a sandboxed application is read: To the bus it's the proxy's connections.
One application in full
$ 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 /home/user/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/51/active/metadata (nothing about the buses)
application /home/user/.local/share/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 2358516867, application pid 3023
proxy 3020 for unix:path=/run/user/1000/bus: --filter --own=org.gnome.Calculator.* ...: the same as read from the files
its connections on the session bus: :1.95
The calculator's files say nothing about the buses, so what it gets is Flatpak's default: Its own names and
the portals. An application whose files grant names has them under its layer, as session io.lamco.RdpServer=own
or system org.freedesktop.login1=talk, and in the proxy's options.
- The layers are merged in Flatpak's order: The runtime, the application, the system's overrides for
all and for it, then your own for all and for it. A later layer's word on a name wins, and
nonetakes a lower layer's grant away. - The proxy options are what Flatpak builds when it runs the application: Its own names and the portals' rules are added to what the files say.
- Flatpak's own reading is asked when Flatpak is installed, and set against this one.
- A running proxy's options are read back from the file it was given them in, and set against the
files. They differ when
flatpak runwas given options of its own, andSBX-002says so.
show also takes a Snap profile's label, snap.NAME.APP, for its D-Bus rules as snapd wrote them, and a
Firejail profile's name, for the proxy options rebuilt from its dbus-user and dbus-system lines.
Findings
dbussee sandbox list --out inventory.json
dbustell sandbox inventory.json
SBX-001 names a grant that amounts to leaving the sandbox: The host-command service, the service manager,
the permission store, the desktop shell, the settings store, the file-access services, or a bus socket.
The findings reference has them all.
With a recording made while the application ran, dbustell sandbox also says what it used:
$ dbussee --quiet record --all --no-host --duration 20 --out rec.json &
$ dbussee sandbox list --out inventory.json
$ wait
$ dbustell sandbox inventory.json --traffic rec.json
No sandbox findings.
org.gnome.Calculator (instance 2358516867), connections :1.95:
16 calls to :1.57 (org.freedesktop.portal.Desktop)
32 calls to org.freedesktop.DBus
1 calls to org.freedesktop.portal.Flatpak
The calculator called the desktop portal 16 times while it started, mostly for its settings, by the portal's
unique name, which the report names. A --talk or --own grant it wasn't seen to use is SBX-004, leaving out the
application's own names, MPRIS and the portals, which every Flatpak application gets; the calculator has no
other.
Take the inventory while the application runs, so its connections are the ones in the recording.
What it can't say
- What a hidden call was: The proxy answers it itself, and on dbus-daemon a host monitor doesn't see it.
- A running proxy's options when they came through a pipe, as Firejail's do: They're rebuilt from the profile instead.
- The setting
kernel.yama.ptrace_scopedoesn't stand in the way: The options were read back at 0, 1, 2 and 3 alike on Fedora 44 (docs/measurements/ptrace-scope/). Yama restricts attaching to a process, and reading what a process of the same user has open isn't attaching. Where they can't be read,SBX-005says why.