PAM: do not fail to mount if the key's already loaded
commitc47b708647d10e6391101492dbd0f63a386ccd10
authorVal Packett <val@packett.cool>
Fri, 5 May 2023 23:00:48 +0000 (5 20:00 -0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Jun 2023 00:00:15 +0000 (31 17:00 -0700)
tree9925d782b5ab4a9e1415ecfaac7cfa9072612661
parent2810dda80b8e1d629236b82c5bee6a4ef717e02e
PAM: do not fail to mount if the key's already loaded

If we're expecting a working home directory on login, it would be
rather frustrating to not have it mounted just because it e.g. failed to
unmount once on logout.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Felix Dörre <felix@dogcraft.de>
Signed-off-by: Val Packett <val@packett.cool>
Closes #14834
contrib/pam_zfs_key/pam_zfs_key.c