Hello everyone! I've created a Fossapup remaster with several enhancements.
What has been changed:
- The new kernel has been compiled (5.15.4) with AppArmor and Landlock support
- New software: AppArmor userspace utilities and Bubblewrap -- the unprivileged namespace sandboxing tool
- run-as-spot script has been modified, so it doesn't simply switch to an unprivileged user, but also confines the app with Bubblewrap and AppArmor profile. This prevents the browser from reading root's home directory, for example.\
- Securityfs is now automatically mounted (required for AppArmor userspace tools)
- /proc is now mounted with hidepid=2
What is planned:
- Automatic loading of AppArmor policy (currently, only spot confinement profiles are loaded by run-as-spot)
- Seccomp support in run-as-spot (I didn't write the filter yet) DONE
- Currently, run-as-spot sandbox doesn't allow creating nested namespaces due to AppArmor capability prohibition. I plan to allow it when I'm sure it's safe, but apps can still confine themselves further with Landlock
- Replace iptables-legacy with iptables-nft DONE
- Research the possibility of using Wayland or nested X servers in order to prevent abuse
- Research the possibility of using xdg-dbus-proxy
- Research the possibility of using the Landlock security module
The iso above is not thoroughly tested and may have issues, so there are files for Frugal install: