On Wed, Feb 13, 2008 at 10:17:36AM +0100, Heiner Markert wrote: > Package: libpam-encfs > Version: 0.1.4.1-2 > Severity: normal > Tags: patch > > --- Please enter the report below this line. --- > > I use libpam-encfs with a special configuration file for (currently) only one > user that mounts a subdirectory of the home-dir for security-specific files. > Config file /etc/security/pam_encfs.conf contains the line > hmarkert /home/hmarkert/.sync /home/hmarkert/sync -v - > where sync is the encrypted directory. I disabled the auto-unmont, because > obviously the active session will not always keep files open and hence > unmounts the directory every few minutes, which is very annoying. So I > configured > session required pam_encfs.so > in /etc/pam.d/common-session. > However, unmounting on session end does not relieably work. I looked into the > source code of pam_encfs.c and did not find anything looking relevant. > However, for me it works if I add a wait()-call in the parent after the fork > that executes fusermount -u on the home directory. I attached a diff with the > changes.
Hi, I was recently looking at some issues with libpam-encfs amd noticed that there were some newer upstream versions available (and that upstream is no longer actively maintaining it), and in last one I noticed a change that may be related to your bug report, use fuse lazy umount by default (see attached patch). I wonder if that may also deal with your problem. Cheers, -- Agustin
diff --git a/pam_encfs.c b/pam_encfs.c index e5e6aaf..6686467 100755 --- a/pam_encfs.c +++ b/pam_encfs.c @@ -676,7 +676,7 @@ PAM_EXTERN int pam_sm_close_session(pam_handle_t * pamh, } args[0] = "fusermount"; - args[1] = "-u"; + args[1] = "-uz"; args[2] = targetpath; args[3] = NULL;