Harden the module service.
This commit is contained in:
parent
a0af563334
commit
8f25a59324
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue