Unprivileged Privileged Nix: An Exercise in Linux Sandboxing
For many security-conscious administrators, the Nix daemon presents a problem: a highly-privileged daemon that parses complex file formats, executes code, and performs error-prone file management; all at the request of untrustworthy users.
A simple question — "What if one could build as an unprivileged user?" — turned into a rabbit hole of syscalls, systemd, and shadow due to Linux's paradoxical problem: in order to lose permissions, one must first gain more.
Artemis Tosini
Artemis Tosini has been an avid user of nix since 2018. She works at Obsidian Systems as a software engineer, and is a nixpkgs committer who loves working with the internals of every system she comes across.