diff options
Diffstat (limited to 'nixos/modules/services/networking/smokeping.nix')
-rw-r--r-- | nixos/modules/services/networking/smokeping.nix | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/smokeping.nix b/nixos/modules/services/networking/smokeping.nix index 6648ada0c0d..67aa313c860 100644 --- a/nixos/modules/services/networking/smokeping.nix +++ b/nixos/modules/services/networking/smokeping.nix @@ -219,14 +219,14 @@ in type = types.string; default = '' + FPing - binary = ${config.security.wrapperDir}/fping + binary = ${config.security.permissionsWrapperDir}/fping ''; description = "Probe configuration"; }; sendmail = mkOption { type = types.nullOr types.path; default = null; - example = "/var/setuid-wrappers/sendmail"; + example = "/var/permissions-wrappers/sendmail"; description = "Use this sendmail compatible script to deliver alerts"; }; smokeMailTemplate = mkOption { @@ -273,7 +273,21 @@ in message = "services.smokeping: sendmail and Mailhost cannot both be enabled."; } ]; - security.setuidPrograms = [ "fping" "fping6" ]; + security.permissionsWrappers.setuid = [ + { program = "fping"; + source = "${pkgs.fping}/bin/fping"; + owner = "root"; + group = "root"; + setuid = true; + } + + { program = "fping"; + source = "${pkgs.fping}/bin/fping6"; + owner = "root"; + group = "root"; + setuid = true; + } + ]; environment.systemPackages = [ pkgs.fping ]; users.extraUsers = singleton { name = cfg.user; |