git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/ddclient: make RuntimeDirectory private

ddclient will raise a warning if /run/ddclient/ is world-readable

commitf76a9eb52674e6f8941a774954dc5ba3f1faceae authorRenaud <c0bw3b@users.noreply.github.com> dateMon 22 Oct 2018, 23:58 (8 years ago) parent9a7bca2
1 file changed+1
nixos/modules/services/networking/ddclient.nix+1
nixos/modules/services/networking/ddclient.nix+1
@@ -182,6 +182,7 @@ with lib;
182182 serviceConfig = rec {
183183 DynamicUser = true;
184184 RuntimeDirectory = StateDirectory;
185+ RuntimeDirectoryMode = "0750";
185186 StateDirectory = builtins.baseNameOf dataDir;
186187 Type = "oneshot";
187188 ExecStartPre = "!${lib.getBin pkgs.coreutils}/bin/install -m666 ${cfg.configFile} /run/${RuntimeDirectory}/ddclient.conf";