Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

grsecurity module: fix grsec-lock unit ordering

Requirement without ordering implies parallel execution; it is crucial
that sysctl tunables are finalized before the lock is engaged, however.

(cherry picked from commit 60a27781d6d358e0c5cd144c7c90642761c1a31f)

+2 -1
+2 -1
nixos/modules/security/grsecurity.nix
··· 234 234 235 235 systemd.services.grsec-lock = mkIf cfg.config.sysctl { 236 236 description = "grsecurity sysctl-lock Service"; 237 - requires = [ "systemd-sysctl.service" ]; 237 + wants = [ "systemd-sysctl.service" ]; 238 + after = [ "systemd-sysctl.service" ]; 238 239 wantedBy = [ "multi-user.target" ]; 239 240 serviceConfig.Type = "oneshot"; 240 241 serviceConfig.RemainAfterExit = "yes";