Skip to content

Commit

Permalink
Merge pull request #108028 from Mic92/confinment
Browse files Browse the repository at this point in the history
systemd-confinement: use /var/empty as chroot mountpoint
  • Loading branch information
Mic92 committed Jul 1, 2021
2 parents cd687af + e12188c commit 8737aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/security/systemd-confinement.nix
Expand Up @@ -105,7 +105,7 @@ in {
wantsAPIVFS = lib.mkDefault (config.confinement.mode == "full-apivfs");
in lib.mkIf config.confinement.enable {
serviceConfig = {
RootDirectory = pkgs.runCommand rootName {} "mkdir \"$out\"";
RootDirectory = "/var/empty";
TemporaryFileSystem = "/";
PrivateMounts = lib.mkDefault true;

Expand Down

0 comments on commit 8737aa9

Please sign in to comment.