Products › lamco-dbus-tools › Interfaces
Flatpak D-Bus permissions: --talk-name, --own-name, and the grant
Flatpak D-Bus permissions such as --talk-name and --own-name decide what an app may reach, and lamco-dbus-tools reads each grant and probes its running proxy.
A Flatpak application doesn't see the whole D-Bus session or system bus. Flatpak puts a filtering proxy between it and each bus, and the application's permissions, --talk-name, --own-name and their system-bus forms, decide what passes. When a Flatpak application can't reach a service, the answer is usually a name the grant lacks, and the error it gets says the service doesn't exist. lamco-dbus-tools reads each application's grant through all its layers, sets it against flatpak info, ties each running instance to its proxy, and probes the host's own proxy with the grant.
What it is
Flatpak's documentation sets out the default. On the session bus an application may own its own namespace, named by its ID, and org.mpris.MediaPlayer2. followed by its ID, and may talk only to names matching those, to the bus itself, org.freedesktop.DBus, and to the portals, org.freedesktop.portal.*. Everything else is added by options:
--talk-name=NAMEand--own-name=NAMEfor the session bus, and--system-talk-name=NAMEand--system-own-name=NAMEfor the system bus. A name ending in.*covers the names below it.--no-talk-name=NAMEtakes a name away.--socket=session-busor--socket=system-busgives the whole bus and stops the filtering. The documentation calls that a security risk, to be avoided unless the application is a development tool.
A grant is built in layers: The runtime's, the application's metadata, the system's overrides for all applications and for this one, then the user's for all and for this one. When the application runs, Flatpak adds its own rules, the portals' among them, and starts xdg-dbus-proxy with the result as its arguments. The repository's notes on a running text editor found seven proxy options, of which the application's metadata named two.
Some names undo the sandbox if granted. org.freedesktop.Flatpak is the host-command service, which runs commands outside the sandbox. The service manager org.freedesktop.systemd1, the permission store, the desktop shell, the settings store ca.desrt.dconf and the file-access services org.gtk.vfs.* are the others the toolkit flags. flatpak run --log-session-bus shows what an application asks for, from Flatpak's side.
Errors you'll meet
org.freedesktop.DBus.Error.ServiceUnknown: A name the grant hides, which looks the same as one that doesn't exist. As recorded:Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown.org.freedesktop.DBus.Error.NameHasNoOwner: A hidden name asked by a call that may not start a service, or aGetNameOwnerthe proxy answers itself.org.freedesktop.DBus.Error.AccessDenied: A name the application may see but not talk to.org.freedesktop.DBus.Error.UnknownMethod: Recorded as one of the proxy's answers in the calculator use case's probe.
How lamco-dbus-tools reads it
dbussee sandbox list and sandbox show read each application's grant with its layers merged in Flatpak's order, set against flatpak info --show-permissions where flatpak is installed, and each running instance's proxy, its options read back and its connections. dbussee sandbox inside, run inside the sandbox, shows the bus the application sees. dbusdo sandbox probe --app starts the host's proxy with the application's grant and probes it. dbustell sandbox gives the SBX- findings, and with --traffic which granted names each running application used.
dbussee sandbox list --out inventory.json # every application's grant, and each running proxy
dbussee sandbox show org.gnome.Calculator # one grant: Layers, proxy options, Flatpak's own reading
dbusdo --out probe.json sandbox probe --app org.gnome.Calculator # the host's proxy, asked with that grant
dbustell sandbox inventory.json --traffic rec.json # SBX- findings, and grants not seen used
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), an installed application's grant read as flatpak info reads it, 385 and 390 probes of its grant and its running proxy all agreeing, its running connection tied to it, and from inside, 4 names of the bus's 77. On Fedora 44 with GNOME Calculator (2026-12-02), a proxy's options were read back at each ptrace_scope from 0 to 3, the probe agreeing each time. The tutorials and sandbox how-tos ran on Fedora 45 with GNOME Calculator from Flathub (2026-12-02).
Findings
SBX-001: A sandbox is granted a way out of it.SBX-002: A running application's proxy enforces other options than its files give.SBX-004: A grant the application wasn't seen to use.SBX-005: A proxy's options couldn't be read back.AUD-006: Session bus names that amount to running code or reading files as the user.
Related
- xdg-dbus-proxy, the proxy that enforces the grant.
- An app that can't reach a service: The grant it lacks.
- List what each sandboxed application may reach on the buses.
- Flatpak's sandbox permissions.