nixos/hardened: build sandbox incompatible with namespaces
Disables the build sandbox by default to avoid incompatibility with
defaulting user namespaces to false. Ideally there would be some kind of
linux kernel feature that allows us to trust nix-daemon builders to
allow both nix sandbox builds and disabling untrusted naemspaces at the
same time.
commit00ac71ab1932b395452209627011a32a63d81897
authorKyle Copperfield <kmcopper@danwin1210.me>
dateTue 19 Nov 2019, 09:57 (7 years ago)
parent93e8c34
nixos/modules/profiles/hardened.nix+2
@@ -20,6 +20,8 @@ with lib;
2020
2121 security.allowUserNamespaces = mkDefault false;
2222
23+ nix.useSandbox = mkDefault false;
24+
2325 security.protectKernelImage = mkDefault true;
2426
2527 security.allowSimultaneousMultithreading = mkDefault false;