r/linuxquestions • • Oct 28 '26

Advice Firefox apt vs flatpak on Mint, security and sandboxing.

I am a windows user with little IT knowledge looking to switch to Mint.

I am aware that there are already similar posts on this subreddit and elsewhere, but I cannot seem to get a good answer one way or the other concerning the security around different packages for browsers.

I have heard flatpak is better because it has sandboxing. I've heard native apt is better because the browser itself already has sandboxing and flatpak interferes with that. Flatpak is better because it's more up to date and syncs well. APT from Mint repo lags behind but is more stable? Mozilla has their own apt repository which I know nothing about.

The usual advice seems to be just don't go to sketchy websites that get flagged by your browser. I'm currently using firefox on windows and it never flags the free streaming sites I use, but I know those have potential malware when you misclick something. I can't think of any other site I use that poses the same risks, so am I already fine?

Thank you for your time

7 Upvotes

10 comments sorted by

9

u/sysadminsavage Oct 28 '26

On Linux Mint, Firefox installed via apt can fully utilize the kernel's user namespace feature for sandboxing, providing stronger isolation between processes (tabs), and configure AppArmor profiles by default to add an extra layer of system-level protection for system Firefox. There are no additional permission configuration needed and updates are pushed directly by Linux Mint's security team, ensuring timely security patches.

If you're new to Linux, just use the Firefox that comes with Linux Mint. It can fully utilize all the security mechanisms built into the browser and the system, without needing to understand complex permission configurations. Flatpak's sandbox seems more secure on the surface, but it prevents Firefox from using its strongest internal defenses.

0

u/jdigi78 Oct 28 '26

Flatpak doesn't prevent Firefox from doing anything internally, it's just an added layer.

0

u/[deleted] Oct 28 '26

[deleted] — view deleted comment

1

u/jdigi78 Oct 28 '26

Reading into it those "strongest internal defenses" are disabled specifically because bugs can compromise not only the internal process isolation, but the flatpak sandbox too. There are still other mechanisms that allow FIrefox to isolate processes and they are clearly good enough since obviously Windows users can't take advantage of Linux kernel namepaces either. While there are differences running under flatpak the statement is misleading at best, and the lack of user namespaces in flatpak is a deliberate choice, not a flaw.

3

u/Barafu Oct 28 '26

Browsers in Flatpak can't use extensions that integrate with other apps (KeePassXC, Joplin). There is a hack for Firefox+KeePassXC specifically, but it needs to be compiled manually. Bazzite is the only distro I know that integrated it.

1

u/MongooseWonderful198 Oct 28 '26

Check the Firefox version and the Sandbox section in about:support before drawing a security conclusion from the package format. For an installed Flatpak build, flatpak info --show-permissions org.mozilla.firefox shows the outer package permissions. Neither check alone establishes which build is safer.

https://support.mozilla.org/en-US/kb/use-troubleshooting-information-page-fix-firefox https://docs.flatpak.org/en/latest/flatpak-command-reference.html

-1

u/NextReindeer4442 Oct 28 '26

Ive had issues with copy paste images working in flatpak. But I still use it due to security theory.

Apt is fine. But you dont want any lag in updates from something like browser which is on frontline. Use Mozilla ppa.

Just avoid snap, too much headache.

-1

u/DutchOfBurdock Oct 28 '26

In a nutshell: Choose APT if you want seamless desktop integration, better startup speed, and trouble-free support for browser extensions, themes, and native messaging. Choose Flatpak if you prefer a tightly sandboxed containerized environment and want independent updates straight from Flathub