Skip to content

Commit

Permalink
[Backport release-24.11] nixos/endlessh-go: fix DNS resolution (#373170)
Browse files Browse the repository at this point in the history
  • Loading branch information
azahi authored Jan 12, 2025
2 parents 281bd5a + 14d5e92 commit 635e887
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nixos/modules/services/security/endlessh-go.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ in
);
DynamicUser = true;
RootDirectory = rootDirectory;
BindReadOnlyPaths = [ builtins.storeDir ];
BindReadOnlyPaths = [
builtins.storeDir
"-/etc/hosts"
"-/etc/localtime"
"-/etc/nsswitch.conf"
"-/etc/resolv.conf"
];
InaccessiblePaths = [ "-+${rootDirectory}" ];
RuntimeDirectory = baseNameOf rootDirectory;
RuntimeDirectoryMode = "700";
Expand Down

0 comments on commit 635e887

Please sign in to comment.