Alertonotify hardening part 3
This commit is contained in:
parent
16042b08c0
commit
78efb084ec
@ -19,19 +19,25 @@
|
||||
serviceConfig = {
|
||||
Type = "exec";
|
||||
ExecStart = "${pkgs.alerttonotify}/bin/alerttonotify";
|
||||
DynamicUser = "yes";
|
||||
|
||||
CapabilityBoundingSet = "";
|
||||
RestrictAddressFamilies = "AF_INET AF_INET6";
|
||||
SystemCallArchitectures = "native";
|
||||
DynamicUser = "yes";
|
||||
LoadCredential = "nats_nkey:/run/secrets/nats_nkey";
|
||||
LockPersonality = "yes";
|
||||
MemoryDenyWriteExecute = "yes";
|
||||
PrivateDevices = "yes";
|
||||
PrivateUsers = "yes";
|
||||
ProtectClock = "yes";
|
||||
ProtectControlGroups = "yes";
|
||||
ProtectHome = "yes";
|
||||
ProtectHostname = "yes";
|
||||
RestrictNamespace = "yes";
|
||||
LoadCredential = "nats_nkey:/run/secrets/nats_nkey";
|
||||
ProtectKernelLogs = "yes";
|
||||
ProtectKernelModules = "yes";
|
||||
RestrictAddressFamilies = "AF_INET AF_INET6";
|
||||
RestrictNamespaces = "yes";
|
||||
RestrictRealtime = "yes";
|
||||
SystemCallArchitectures = "native";
|
||||
SystemCallFilter = "~@privileged";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user