about summary refs log tree commit diff
path: root/nixos/tests/pam
diff options
context:
space:
mode:
authorshimun <shimun@shimun.net>2022-04-06 12:23:17 +0200
committershimun <shimun@shimun.net>2022-07-15 20:38:24 +0200
commit327d99c0caceb3e6fed76347c53d9ff8c667bc59 (patch)
treeda387156df36802c0ed8f1f1e9b9b7cc64e1c64c /nixos/tests/pam
parent4b0a37b89f847d2affed3e678c753f4e60979595 (diff)
nixos/security/pam: added `origin` option to pamu2f
Diffstat (limited to 'nixos/tests/pam')
-rw-r--r--nixos/tests/pam/pam-u2f.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/pam/pam-u2f.nix b/nixos/tests/pam/pam-u2f.nix
index d7c540982cfa0..07408dea797e4 100644
--- a/nixos/tests/pam/pam-u2f.nix
+++ b/nixos/tests/pam/pam-u2f.nix
@@ -12,6 +12,7 @@ import ../make-test-python.nix ({ ... }:
         debug = true;
         enable = true;
         interactive = true;
+        origin = "nixos-test";
       };
     };
 
@@ -19,7 +20,7 @@ import ../make-test-python.nix ({ ... }:
     ''
       machine.wait_for_unit("multi-user.target")
       machine.succeed(
-          'egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue" /etc/pam.d/ -R'
+          'egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue.*origin=nixos-test" /etc/pam.d/ -R'
       )
     '';
 })