Commit 0c6b3ff3 authored by Bruce Toll's avatar Bruce Toll Committed by github-actions[bot]
Browse files

nixos/tests/systemd-journal: Fix failing tests

Fix regression from https://github.com/NixOS/nixpkgs/pull/379629.
The systemd-journal test has been failing on hydra since 2025-02-10.
See, for instance: https://hydra.nixos.org/build/290855155.

This commit enables auditing, as expected by the tests. It also
addresses an issue where audit messages were getting dropped due to
rate limits.

(cherry picked from commit 22d51e08)
parent 33e06502
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -12,11 +12,17 @@ import ./make-test-python.nix (
    };
    nodes.auditd = {
      security.auditd.enable = true;
      security.audit.enable = true;
      environment.systemPackages = [ pkgs.audit ];
      boot.kernel.sysctl."kernel.printk_ratelimit" = 0;
      boot.kernelParams = [ "audit_backlog_limit=8192" ];
    };
    nodes.journaldAudit = {
      services.journald.audit = true;
      security.audit.enable = true;
      environment.systemPackages = [ pkgs.audit ];
      boot.kernel.sysctl."kernel.printk_ratelimit" = 0;
      boot.kernelParams = [ "audit_backlog_limit=8192" ];
    };

    testScript = ''