3
0
Fork 0
forked from mirrors/nixpkgs

nixos/pam: fix pam_mount called multiple times

fixes automatic unmounting with pam_mount by preventing it to be called
multiple times at login
This commit is contained in:
Jennifer Graul 2022-04-03 08:09:43 +02:00 committed by Yuka
parent aab655c554
commit b20a1c34c2

View file

@ -594,6 +594,7 @@ let
session optional ${pkgs.ecryptfs}/lib/security/pam_ecryptfs.so
'' +
optionalString cfg.pamMount ''
session [success=1 default=ignore] ${pkgs.pam}/lib/security/pam_succeed_if.so service = systemd-user quiet
session optional ${pkgs.pam_mount}/lib/security/pam_mount.so disable_interactive
'' +
optionalString use_ldap ''