nixos/postgresql: MemoryDenyWriteExecute must be off when doing JIT

The test breaks like this otherwise:

    machine # WARNING:  error during JITing: Permission denied
    machine # [   14.012280] postgres[913]: [913] WARNING:  error during JITing: Permission denied
    machine # ERROR:  failed to look up symbol "evalexpr_0_1": Failed to materialize symbols: { (main, { evalexpr_0_1, evalexpr_0_0 }) }
This commit is contained in:
Maximilian Bosch 2024-10-01 09:20:15 +02:00 committed by Martin Weinelt
parent f800d8e42b
commit 0f1e2a1cd8
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -630,7 +630,7 @@ in
PrivateTmp = true;
ProtectHome = true;
ProtectSystem = "strict";
MemoryDenyWriteExecute = true;
MemoryDenyWriteExecute = lib.mkDefault (cfg.settings.jit == "off");
NoNewPrivileges = true;
LockPersonality = true;
PrivateDevices = true;