nixos/tests/systemd-confinement.nix
deleted100644 → 0
+0
−184
+187
−0
Loading
This adds support for the systemd ProtectSystem and DynamicUser options in conjunction with the systemd-confinement module, which has been a limitation in the initial implementation and so far has thrown assertion errors whenever those options were enabled. Thanks to @ju1m, we now no longer need to resort to static users. Review for this work took a little bit longer since I wanted to be absolutely sure that we don't introduce any new regressions, which would involve increasing the attack surface. In the end however, we even managed to even lower the attack surface even more since now the confined filesystem root is now read-only even for the root user.