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.
This commit is contained in:
parent
39db90eaf6
commit
60a27781d6
@ -234,7 +234,8 @@ in
|
|||||||
|
|
||||||
systemd.services.grsec-lock = mkIf cfg.config.sysctl {
|
systemd.services.grsec-lock = mkIf cfg.config.sysctl {
|
||||||
description = "grsecurity sysctl-lock Service";
|
description = "grsecurity sysctl-lock Service";
|
||||||
requires = [ "systemd-sysctl.service" ];
|
wants = [ "systemd-sysctl.service" ];
|
||||||
|
after = [ "systemd-sysctl.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
serviceConfig.RemainAfterExit = "yes";
|
serviceConfig.RemainAfterExit = "yes";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user