• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle




  • I don’t really bother with AV on my linux system. What I do is just use trusted software from my repos and run containerized applications.

    What I am currently working on is using secure boot with a Unified Kernel Image (already doing that) that boot into a read-only /usr/ partition with verity + signature (one UKI only loads a certain partition with a specific signature, or nothing at all). Any other things I need I create a systemd sysext that gets overlayed ontop of /usr/ (also read-only) or they get installed as flatpak. For development I would just be using nspawn containers and podman/OCI containers for services that are outside of the other scopes.

    This is all based on https://0pointer.net/blog/fitting-everything-together.html which is a nice write down of what I am doing/following.

    That already covers a lot of different attack vectors by just not having my system be modifyable outside of my control or apps just being containerized.



  • Arch: Move more of the things shipped by the distro to /usr/, too many things are still in /etc/, /var/ and /srv/. Generally this isn’t a problem, but when you want to make an A/B updated image where only /usr/ is shipped it is a bit annoying. Also, bash has no way to have a “distro” version of /etc/profile.

    Another benefit is: no .pacnew files in /etc/ (or anywhere else) since those would all be managed by the system maintainer and aren’t touched by the package manager




  • The thing with AppImages is: it requires FUSE2 which doesn’t really get packaged/included by default anymore in a lot of places and the recommendation is “build on the most old and crusty distro you want to support” which just sounds like a nightmare in multiple ways :)

    And with snaps the sandboxing only really works on Ubuntu and nowhere else last time I looked into it (then there is also the entire problem if you want to host your own repository/“storefront”).

    So really the only universal sandboxing method that effectivly makes sense is Flatpak.