Alertonotify hardening part 1
Some checks failed
Run nix flake check / flake-check (push) Failing after 4m30s

This commit is contained in:
Torjus Håkestad 2025-05-18 15:08:26 +02:00
parent fe2e87658a
commit 8e0b97c9e0
Signed by: torjus
SSH Key Fingerprint: SHA256:KjAds8wHfD2mBYK2H815s/+ABcSdcIHUndwHEdSxml4

View File

@ -19,6 +19,18 @@
serviceConfig = {
Type = "exec";
ExecStart = "${pkgs.alerttonotify}/bin/alerttonotify";
DynamicUser = "yes";
CapabilityBoundingSet = "";
RestrictAddressFamilies = "AF_INET AF_INET6";
SystemCallArchitectures = "native";
LockPersonality = "yes";
MemoryDenyWriteExecute = "yes";
PrivateDevices = "yes";
PrivateUsers = "yes";
ProtectControlGroups = "yes";
ProtectHome = "yes";
ProtectHostname = "yes";
RestrictNamespace = "yes";
};
};
}