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:
parent
ead36718eb
commit
2ebffcc4c7
2 changed files with 41 additions and 0 deletions
|
@ -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()
|
||||
'';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue