Change systemd options

This commit is contained in:
2025-05-24 03:33:44 +02:00
parent c844888514
commit 586440fe8d

View File

@@ -31,8 +31,11 @@ in
ExecStart = "${pkgs.labmon}/bin/labmon ${settingsFile}";
DynamicUser = true;
Restart = "always";
RuntimeDirectory = "labmon";
RuntimeDirectoryMode = "0700";
# Hardening
DeviceAllow = [ "/dev/null rw" ];
DevicePolicy = "strict";
LockPersonality = true;
MemoryDenyWriteExecute = true;
@@ -53,6 +56,7 @@ in
RestrictAddressFamilies = [
"AF_INET"
"AF_INET6"
"AF_UNIX"
];
RestrictNamespaces = true;
RestrictRealtime = true;