Comment 12 for bug 358573

Revision history for this message
Max Bowsher (maxb) wrote :

/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.