Harden the module service.

This commit is contained in:
niten 2023-01-12 11:15:43 -08:00
parent a0af563334
commit 8f25a59324
1 changed files with 17 additions and 17 deletions

View File

@ -65,23 +65,23 @@ in {
OBJECTIFIER_CLEANUP_DELAY = toString cfg.cleanup.delay;
};
serviceConfig = {
# PrivateUsers = true;
# PrivateDevices = true;
# PrivateTmp = true;
# PrivateMounts = true;
# ProtectControlGroups = true;
# ProtectKernelTunables = true;
# ProtectKernelModules = true;
# ProtectSystem = true;
# ProtectHostname = true;
# ProtectHome = true;
# ProtectClock = true;
# ProtectKernelLogs = true;
# DynamicUser = true;
# MemoryDenyWriteExecute = true;
# RestrictRealtime = true;
# LockPersonality = true;
# PermissionsStartOnly = true;
PrivateUsers = true;
PrivateDevices = true;
PrivateTmp = true;
PrivateMounts = true;
ProtectControlGroups = true;
ProtectKernelTunables = true;
ProtectKernelModules = true;
ProtectSystem = true;
ProtectHostname = true;
ProtectHome = true;
ProtectClock = true;
ProtectKernelLogs = true;
DynamicUser = true;
MemoryDenyWriteExecute = true;
RestrictRealtime = true;
LockPersonality = true;
PermissionsStartOnly = true;
WorkingDirectory = "${pkgs.objectifier}";
StateDirectory = "objectifier";
CacheDirectory = "objectifier";