Merge pull request #268634 from tie/redis-restrict-address-families

nixos/redis: loosen systemd address family restrictions
This commit is contained in:
Mario Rodas 2023-11-27 20:06:29 -05:00 committed by GitHub
commit 3dba8d6fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,9 +393,7 @@ in {
ProtectKernelModules = true;
ProtectKernelTunables = true;
ProtectControlGroups = true;
RestrictAddressFamilies =
optionals (conf.port != 0) ["AF_INET" "AF_INET6"] ++
optional (conf.unixSocket != null) "AF_UNIX";
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ];
RestrictNamespaces = true;
LockPersonality = true;
MemoryDenyWriteExecute = true;