Skip to content

Commit

Permalink
rngd: harden service config, from arch
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzWill authored and tadeokondrak committed May 17, 2019
1 parent f1e8e6e commit 4fa193e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nixos/modules/security/rngd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ in
serviceConfig = {
ExecStart = "${pkgs.rng-tools}/sbin/rngd -f"
+ optionalString cfg.debug " -d";
NoNewPrivileges = true;
PrivateNetwork = true;
PrivateTmp = true;
ProtectSystem = "full";
ProtectHome = true;
};
};
};
Expand Down

0 comments on commit 4fa193e

Please sign in to comment.