71
you are viewing a single comment's thread
view the rest of the comments
[-] who@feddit.org 7 points 2 days ago* (last edited 2 days ago)

You can restrict casual directory access if you're careful, and well-informed, and diligent about the (often overly generous) permissions chosen by each Flatpak's maintainers, and those chosen by runtimes and base applications, and about changes over time.

However, files and directories are only a small fraction of what hostile code can exploit. There are also d-bus services, abstract sockets, shared memory areas, display server protocols, and device nodes, for example. In the fingerprinting and tracking department, we have things like hardware peculiarities and installed font lists. If you're concerned not only about privilege escalation and data exfiltration, but also about collection of your biometrics, then you should consider keystroke timing, mouse movement patterns, voice samples, and the like. These are just examples, not exhaustive lists.

More fundamentally, Flatpak sandboxes are made of Linux namespaces, which have a long history of vulnerabilities and exploits. They're pretty good at containing buggy software, but software that wants to circumvent them can find a way, and if its developers are sufficiently skilled, will find a way.

[-] victorz@lemmy.world 1 points 1 day ago

So Flatpak's "security measures" are basically completely useless, is what I am to understand?

[-] who@feddit.org 1 points 1 day ago* (last edited 1 day ago)

They're useful like a lock on a door is useful. They protect from some circumstances, but not all, and won't stop a skilled attacker.

If you're determined to let hostile code execute on your hardware, you should get yourself some dedicated hardware for that purpose, isolate it from your network, and never use it for anything else. A game console, for example.

[-] victorz@lemmy.world 1 points 1 day ago

Would a container be enough? A VM?

[-] who@feddit.org 1 points 1 day ago* (last edited 1 day ago)

From weakest to strongest protection:

  1. Containers can refer to a variety of things, but most are based on Linux namespaces, with weaknesses similar to Flatpak.
  2. Hypervisor-based virtual machines will usually provide better isolation than containers, but not perfect or foolproof.
  3. Dedicated hardware, without any way to reach systems you wish to protect, is better still.
  4. Don't allow hostile code to run at all.

VFIO gaming falls somewhere between 1 and 2.

You'll have to decide for yourself how to balance risk, reward, and cost with your threat model.

[-] victorz@lemmy.world 1 points 1 day ago

Makes sense.

I'm running Heroic launcher anyway but thanks for all the info! You settled my curiosity. 😊

[-] hirihit640@sh.itjust.works 3 points 1 day ago

The only thing I really use them for is to disable internet for open source applications that I trust aren't malicious, but might still have telemetry in them.

However don't let perfect be the enemy of good. Flatpak permissions are a step forward, at the very least defining a permission framework. Initially, permissions were defined but every app had all permissions, since app devs were lazy. Now, app devs are being better about defining what permissions are needed. In the future I imagine that Linux and Flatpak will lock down the security, making the permissions more concrete.

It's a step by step process.

[-] victorz@lemmy.world 1 points 1 day ago

Then I'll keep installing software I need but don't necessarily trust using Flatpak 👌

this post was submitted on 13 Nov 2026
71 points (74.1% liked)

Linux Gaming

28478 readers
230 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

No memes/shitposts/low-effort posts, please.

That includes posts generated by LLMs. It doesn’t matter if you “don’t have the time” or “would’ve written the same anyway”, or if “everyone’s doing it geez get with the times”.

For now it’ll also include “AI”-assisted projects that haven't had at least two months of (public, verifiable) dev time behind them.

Resources

Help:

Launchers/Game Library Managers:

General:

Discord:

IRC:

Matrix:

Telegram:

founded 3 years ago
MODERATORS