I understand that a Flatpak with access to the host-spawn interface can launch native programs. Is there a way to limit that to a chosen set of apps instead of granting broad access to run host commands?
Can a Flatpak be allowed to launch only specific host apps?
Answers
That permission is a broad capability, not a per-application allowlist. If the app can use host spawning, assume it may ask the host to run arbitrary commands. I would not treat that as a narrow permission just because the launcher normally uses it to start games.
Reply to this answer
If you need a specific native tool, a safer design is usually to expose only that tool through a small, separately controlled helper or service, rather than giving the Flatpak general host-spawn access. Whether that works depends on the app and how the helper is packaged and secured.
Reply to this answer
Check whether the app actually needs this permission for your setup. Some launchers use host access for conveniences such as starting software installed outside the sandbox. If you do not use those features, removing the permission may be the simplest option, though some functionality could stop working.
Reply to this answer
Also consider what the native program can access once it starts. Restricting which executable is launched is not enough if that program accepts arbitrary arguments, reads user files, or can launch other commands. The boundary needs to cover the whole chain, not just the first process.
Reply to this answer
Add your answer
Answers are reviewed before publication.
LANpartyPigeon:
So there isn't a built-in setting that names a few permitted host programs?