Products › lamco-dbus-tools › Docs
See the D-Bus session bus from inside a Flatpak sandbox
See the D-Bus session bus from inside a Flatpak sandbox: Run the static dbussee there to list the names the proxy shows, the bus addresses and the label.
Describes version 0.4.1. Run again on the final build on 2026-12-02, on Fedora 45 with
GNOME Calculator from Flathub (docs/measurements/stage-13/sandbox/).
It needs the static dbussee (building), in a directory the sandbox can read. It works at layer 1: It asks
the bus it's given for its id and its names.
The static program depends on no library, so it runs inside any sandbox. In Flatpak, give one run the directory it's in, which changes nothing stored:
$ flatpak run --command=/var/tmp/lamco/dbussee --filesystem=/var/tmp/lamco org.gnome.Calculator sandbox inside
Inside Flatpak: org.gnome.Calculator, instance 3373214185
Running under the security label unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/flatpak/bus
DBUS_SYSTEM_BUS_ADDRESS=(unset)
AT_SPI_BUS_ADDRESS=unix:path=/run/flatpak/at-spi-bus
container=flatpak
FLATPAK_ID=org.gnome.Calculator
SNAP_INSTANCE_NAME=(unset)
The bus answered, id 8253b55e1f7064808291e46f9a847cfe. It shows 4 well-known names:
org.freedesktop.DBus
org.freedesktop.portal.Desktop
org.freedesktop.portal.Documents
org.freedesktop.portal.IBus
None of the names that amount to leaving a sandbox is shown.
That's Fedora 45, where the session bus outside had 79 well-known names in a run later that day. The calculator has no system bus at all: Its grant gives none, so the address is unset. It gives:
- The addresses and the environment the program was given, and the security label it runs under, SELinux's here and AppArmor's where that's the module.
/.flatpak-info, which names the application and the instance.- The names the bus shows it, and which of them amount to leaving a sandbox.
--json gives the same as a document. For a Firejail sandbox, the same would be running it under the
profile, firejail --profile=NAME /path/to/dbussee sandbox inside. Firejail itself has been run
(docs/measurements/snap-firejail/), but not this command under it. In a Snap it was run, and names the snap
by SNAP_INSTANCE_NAME.
What it can't see
It can't see what's hidden. A program inside meets the same filter as the application, so a name the filter hides is
hidden from it too. To ask about those, test the grant from outside with dbusdo sandbox probe.