I am using encrypted home directories mounted by pam_mount at the opening of the session. I have also configured ssh to use pam_mount during the authentification process. The problem is that when I close the ssh session, the encrypted volumes aren't unmounted. This doesn't happen for a local connection. In that case, encrypted volume are correctly unmounted after logout. Reproducible: Always Steps to Reproduce: 1.Open an ssh session to a server where volumes mounted by pam_mount are configured 2.Close the ssh session 3.
Try you luck upstream, not a Gentoo-specific issue. http://sourceforge.net/tracker/?group_id=41452&atid=430593
It's indeed probably a bug that should be reported upstream but I think it's a bug with ssh rather than with pam_mount. The problem doesn't occur if I connect locally in a console or with gdm. It only appears with ssh (either locally or with a remote connection).