/me has a flash of inspiration....

cron starts all the jobs approximately simultaneously, calling through
pam to start sessions for each..... for each job, pam_ecryptfs.so
increments the refcount file in /tmp/  -  and the various invocations of
pam_ecryptfs.so race with each other, in a textbook classic "lost
updates" race condition.

When the jobs terminate, they've usually spread out enough in time that
you are less likely to get the same loss of counter decrements.

Hence, more decrements than increments actually take effect, and the
refcount hits zero.

-- 
ecryptfs private directory randomly unmounts
https://bugs.launchpad.net/bugs/358573
You received this bug notification because you are a member of eCryptfs,
which is subscribed to ecryptfs-utils in ubuntu.

Status in eCryptfs - Enterprise Cryptographic Filesystem: Confirmed
Status in “ecryptfs-utils” package in Ubuntu: Confirmed

Bug description:
Binary package hint: ecryptfs-utils

This seems to be bug #259293, but I am filing a new one as I haven't seen this 
in some time. Twice in the last week my ~/Private directory unmounted. Both 
times /tmp/ecryptfs-<user>-Private was '0'. Both times, the symlink in the 
unmounted ~/Private was not present.  I have a cron job that runs every 10 
minutes that I can see in syslog:

Apr  9 11:15:04 hostname CRON[22771]: Mount of private directory return code [0]

It could be that bug #259293 is simply 'mostly' fixed and I coincidentally hit 
this twice in the last week, or it could be a new bug (I don't know).

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: ecryptfs-utils 73-0ubuntu2
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ecryptfs-utils
Uname: Linux 2.6.28-11-generic x86_64

_______________________________________________
Mailing list: https://launchpad.net/~ecryptfs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ecryptfs
More help   : https://help.launchpad.net/ListHelp

Reply via email to