Supported since stretch, the FlatPak framework is available on Debian. Might be useful for newer versions of standalone software that move too fast for Debian’s release cycle. There is a big warning label on relying on it for sandboxing security however.
Flatpak’s sandboxing isn’t that great. Most apps come with
filesystem=home by default which mounts all of /home as read-write meaning you can escape just by running
echo evil_malware >> .bashrc or many have
device=all so you have access to all devices.
It’s not fine-grained at all and it’s either allow a whole bunch of stuff, or not allow anything.
The devs also refuse to add any X11 sandboxing and claim X11 can’t be secured even though using xpra is easy.
Indeed. Thanks for your input. It adds context to Bubblewrap’s recommendation of using Flatpak as an alternative for security sandboxing of resources like Pulseaudio which they don’t handle.
Now we know this is not a real option and that Firejail is the only sandboxing solution that attempts to handle the graphics/audio interactions of software besides other access.
In context of Policy for Inclusion of Compiled Software the sandboxing is irrelevant.
No, firejail’s handling of graphics/audio is essentially just a few blacklist rules.
They’ve just made it far more complicated than it needs to be. Another reason why firejail has too large attack surface.
This can easily be replicated in other sandboxing solutions like bubblewrap by just not mounting pulseaudio files.
This is interesting because it contains some popular applications not available from any debian package repository.
Easy to setup on Debian.
flathub is already in Debian.
Sandboxing abilities by flatpak are irrelevant as long as sandboxing isn’t worse as for manually installed software. Whatever sandboxing flatpak is doing, it shouldn’t break application’s own sandboxing. Such as, does flatpak break chromium’s own sandbox? I don’t know any indication for that yet. Just asking.
In other words, consideration is
flathub as a source of software literally. It shouldn’t be held to a higher standard than APT.
There have been no incidences reported of malware sneaking in past the code reviewers like snap so far. As for TUF security minded design, there’s no design documents I can readily find answering these questions so upstream needs to be asked. There is basic things like GPG signing all flatpak repo commits however.
For the Chrome package it seems they are running outside of the sanbox entirely otherwise it won’t work because of sandboxes conflicts.
The Chromium in flatpak has nested sandboxing - meaning it is patched to use both.
Currently chromium or chromium based browsers doesnt work from flathub inside debian.
buster version of
error: Failed to install org.chromium.Chromium: app/org.chromium.Chromium/x86_64/stable needs a later flatpak version (1.8.2)
buster-backports version of
flatpak chromium still won’t work out of the box, but it is possible according to the following ticket.
Successfully tested just now.
Related to unprivileged user namespaces,
Reported to Debian.
org.chromium.Chromium broken in Debian buster
nice tested on debian buster and its working as well. (but simon has nice reply which he gonna fix it without the need of security concerns in bullseye)
On one hand, flathub seems like a great source of software for some cases. flathub’s own sandboxing capabilities even if limited forever could be disregarded for that use case.
On the other hand however, flathub’s own sandboxing capabilities interfere with other sandboxing initiatives, namely
Could we request a feature from flathub to disable its own sandboxing to make it compatible with other sandboxing mechanisms such as
Hello, Bug #977758 in bubblewrap reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian/bubblewrap/-/commit/245de43719896c18146e12bf913f813d0582f0cf ------------------------------------------------------------------------ Stop making /usr/bin/bwrap setuid root With Debian kernels >= 5.10, this is no longer necessary: unprivileged users can now create user namespaces, the same as in upstream kernels and Ubuntu. For smooth upgrades, install a sysctl configuration fragment that will configure older kernels to behave similarly if the recommended procps package is installed. Closes: #977758 Closes: #977841 ------------------------------------------------------------------------ (this message was generated automatically) – Greetings https://bugs.debian.org/977758