antistress adventure in Flatpak land est un journal que j’ai rédigé le 30 avril 2024 sur demande, pour raconter mon passage du paquet Firefox de ma distribution (Debian Testing) au paquet Flatpak de Firefox (officiel, du dépôt FlatHub).

Puis voilà t-y pas que, récemment, un Lien pointant vers l’article The future of Flatpak publié sur LWN.net m’alerte : et si ça avait été une grosse connerie ?

le penseur de Rodin, photo par marmontel sous licence CC BY 2.0, SOURCE : https://www.flickr.com/photos/marmontel/51071911292/

En effet, je relève alors particulièrement ce passage de l’article de LWN.net :

One thing that has been a bit of a pain point, Wick said, is that nested sandboxing does not work in Flatpak. For instance, an application cannot use Bubblewrap inside Flatpak. Many applications, such as web browsers, make heavy use of sandboxing.

They really like to put their tabs into their own sandboxes because it turns out that if one of those tabs is running some code that manages to exploit and break out of the process there, at least it’s contained and doesn’t spread to the rest of the browser.

What Flatpak does instead, currently, is to have a kind of side sandbox that applications can call to and spawn another Flatpak instance that can be restricted even further. «  »So, in that sense, that is a solution to the problem, but it is also kind of fragile ». » There have been issues with this approach for quite a while, he said, but no one knows quite how to solve them.

À quoi Sébastien Wilmet répond sous le Lien :

Je trouve ta question intéressante. Mais pour avoir une réponse précise j’ai l’impression que le meilleur endroit est encore à la source, sur LWN où les développeurs cités dans l’article répondent (parfois).

Mon commentaire : Is a web browser less secure when run within a Flatpak?

Donc, merci pour cette question 🙂 Espérons que quelqu’un sur LWN y réponde.

Depuis, une réponse a été postée :

I was wondering the same thing while reading the article. Comparing the Sandbox section of about:support between the Flatpak and native Fedora versions, the only difference is that « User Namespaces » is false with Flatpak. Everything else is the same, including the « Sandbox Level » values.

Chez OSnews on peut également ce commentaire d’un lecteur :

Flatpak sandboxing very badly breaks browser internal sandboxing, to a point that I don’t think an up to date Firefox or Chromium based browser running in Flatpak can be called adequately secure. Zypak helps with Chromium based browsers to a point, but the real issue is that breaking namespaces gets rid of a lot of horizontal sandboxing between tabs. What’s more, it looks like this could all be avoided by providing a way to bypass Flatpak sandboxing, as is possible in Snaps… Or by using a normal MAC framework for the external sandbox, again as in Snaps. But those are not things that will happen if Flatpak is in maintenance mode.

Alors : antistress a t-il eu raison d’installer son Firefox en version Flatpak ?

On dirait bien que c’était une connerie. Qu’en pensez-vous ?