systemd hardening for pvv-nettsiden-gallery-update.service #90

Merged
alfhj merged 2 commits from gallery-service-hardening into main 2024-11-09 22:22:09 +01:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit de90a8e827 - Show all commits

View File

@ -70,7 +70,7 @@ in {
MemoryDenyWriteExecute = true;
NoNewPrivileges = true; # disable for third party rotate scripts
PrivateDevices = true;
#PrivateNetwork = true; # disable for mail delivery
PrivateNetwork = true; # disable for mail delivery
PrivateTmp = true;
ProtectClock = true;
ProtectControlGroups = true;
@ -84,7 +84,7 @@ in {
RestrictNamespaces = true;
RestrictRealtime = true;
RestrictSUIDSGID = true; # disable for creating setgid directories
#SocketBindDeny = [ "any" ];
SocketBindDeny = [ "any" ];
SystemCallArchitectures = "native";
SystemCallFilter = [
"@system-service"