nixos/anubis: Apply some more hardening settings (#410041)

This commit is contained in:
Aleksana 2025-05-26 17:42:25 +08:00 committed by GitHub
commit 05ea790f13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -299,7 +299,8 @@ in
];
SystemCallArchitectures = "native";
MemoryDenyWriteExecute = true;
AmbientCapabilities = "";
PrivateMounts = true;
PrivateUsers = true;
PrivateTmp = true;
PrivateDevices = true;
@ -313,6 +314,7 @@ in
ProtectSystem = "strict";
ProtectControlGroups = "strict";
LockPersonality = true;
RemoveIPC = true;
RestrictRealtime = true;
RestrictSUIDSGID = true;
RestrictNamespaces = true;