#1126719 libpam-mount: After logout, active systemd --user owned block crypto mapping to be closed as it is active

Package:
libpam-mount
Source:
libpam-mount
Description:
PAM module that can mount volumes for a user session
Submitter:
Laurent Mesuré
Date:
2026-01-31 16:31:38 UTC
Severity:
normal
#1126719#5
Date:
2026-01-31 16:30:53 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
	I was trying to use libpam_mount to make safer partition for any user on my systems.
	mounting was working after a while, but closing the crypted mapper cannot be done as it is considered active.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
	Was effective:
	  - open crypto device
	  - mounting crypto mapper on partition (created by the mounting)
	  - unmounting of user partition
	  - unmounting of tmpfs
	Was ineffective
	  - closing of crypto device mapper
   * What was the outcome of this action?
	Closing device mapper was due to being still active. After tests and check with debug option, i finally
	observe that the process systemd --user of the user loging out was still active when pam_mount try to close the mapper.

   * What outcome did you expect instead?
	That after activity out for the user, pam_mount succeed closing the mapper