Use landlock for AppImage sandboxing #1444
TheAssassin
started this conversation in
Ideas
Replies: 1 comment 3 replies
Does this mean we'll get it "for free" and don't need to do anything on our end? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been reading about different Linux sandboxing mechanisms in the past few weeks as such technologies have become even more important due to the rise of agentic coding.
There are many mechanisms, e.g., AppArmor, seccomp, selinux, (unprivileged) namespaces and the less known landlock.
I found about landlock due to nono and found the concept interesting. It's easier to use and implement apparently than container technology (it's meant for end-user stuff, and unprivileged namespaces have been a security nightmare and therefore been restricted or disabled again in most distros), it is a kernel technology (i.e., it works on any distro with a kernel >= 5.13 AFAICS), there is a neat little Rust library that implements the interface, ...
I've had to ask myself, why have I never come across landlock in the AppImage context? Are there reasons for this? Looks like Firejail has added it in a recent releasehttps://github.com/netblue30/firejail/releases/tag/0.9.74
My old criticism of blindly using a tool like Firejail still stands: you need custom application profiles and these profiles must not be distributed just within the (untrusted) AppImage but be available from a trusted source (no, a "web of trust" falls short easily, please don't warm up this discussion). What would work IMO is that an app would "ask" for permissions you could grant upon request, that's how things work on macOS to some extent. What would also work is an easy-to-configure first run wizard (e.g., what AppImageLauncher does) to configure the basics, with an easy-to-use control panel. But this is off-topic. This discussion is about landlock as a technology.
See also the Integrations page. Pretty much all major distros enable it by default, Gentoo being the only exception.
All reactions