mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
nixos/public-inbox: test confinement
This commit is contained in:
parent
69b606d103
commit
bbb68bef2e
1 changed files with 6 additions and 0 deletions
|
@ -183,6 +183,12 @@ import ./make-test-python.nix (
|
|||
testScript = ''
|
||||
start_all()
|
||||
|
||||
# The threshold and/or hardening may have to be changed with new features/checks
|
||||
with subtest("systemd hardening thresholds"):
|
||||
print(machine.succeed("systemd-analyze security public-inbox-httpd.service --threshold=5 --no-pager"))
|
||||
print(machine.succeed("systemd-analyze security public-inbox-imapd.service --threshold=5 --no-pager"))
|
||||
print(machine.succeed("systemd-analyze security public-inbox-nntpd.service --threshold=4 --no-pager"))
|
||||
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.wait_for_unit("public-inbox-init.service")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue