1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-26 02:56:36 +03:00

nixos/postgresql: set up sandboxing

Reduces the general exposure of the postgresql.service through systemd
hardening options.
This commit is contained in:
Martin Weinelt 2024-09-27 19:24:59 +02:00
parent ead36718eb
commit 2ebffcc4c7
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 41 additions and 0 deletions

View file

@ -126,6 +126,8 @@ let
with subtest("Initdb works"):
machine.succeed("sudo -u postgres initdb -D /tmp/testpostgres2")
machine.log(machine.execute("systemd-analyze security postgresql.service | grep -v ")[1])
machine.shutdown()
'';