git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #161818 from Luflosi/fix-tor-read-resolv.conf
commit0b88ca814f4ae87da29f7b792a592bc9219e1560 authorSandro <sandro.jaeckel@gmail.com> dateTue 15 Mar 2022, 19:23 (5 years ago) parente23b2723c63da7
1 file changed+5−1
nixos/modules/services/security/tor.nix+5−1
nixos/modules/services/security/tor.nix+5−1
@@ -1008,7 +1008,11 @@ in
10081008 #InaccessiblePaths = [ "-+${runDir}/root" ];
10091009 UMask = "0066";
10101010 BindPaths = [ stateDir ];
1011− BindReadOnlyPaths = [ storeDir "/etc" ];
1011+ BindReadOnlyPaths = [ storeDir "/etc" ] ++
1012+ optionals config.services.resolved.enable [
1013+ "/run/systemd/resolve/stub-resolv.conf"
1014+ "/run/systemd/resolve/resolv.conf"
1015+ ];
10121016 AmbientCapabilities = [""] ++ lib.optional bindsPrivilegedPort "CAP_NET_BIND_SERVICE";
10131017 CapabilityBoundingSet = [""] ++ lib.optional bindsPrivilegedPort "CAP_NET_BIND_SERVICE";
10141018 # ProtectClock= adds DeviceAllow=char-rtc r