Unverified Commit 3dba8d6f authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

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

nixos/redis: loosen systemd address family restrictions
parents 9b696e80 5c898bec
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;