automount via pam_ecryptfs results in duplicate process

Bug #938326 reported by Kees Cook
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eCryptfs
Fix Released
High
Dustin Kirkland 
ecryptfs-utils (Ubuntu)
Fix Released
High
Kees Cook

Bug Description

When handling automounting, the forked helper triggers a duplicate PAM process, creating rather unexpected results:

$ cd /tmp
$ touch monkey
$ ls cow
ls: cannot access cow: No such file or directory
$ sudo -s
# sudo -u kees ln monkey cow
ln: creating hard link `cow': File exists

strace reveals two "ln" commands getting spawned simultaneously. Eek.

Revision history for this message
Kees Cook (kees) wrote :

Untested fix attached...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ecryptfs-utils - 96-0ubuntu2

---------------
ecryptfs-utils (96-0ubuntu2) precise; urgency=low

  * Add debian/patches/automount-fork-exit.patch (LP: #938326).
 -- Kees Cook <email address hidden> Tue, 21 Feb 2012 17:49:54 -0800

Changed in ecryptfs-utils (Ubuntu):
status: New → Fix Released
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Committed upstream, r657. Will be in ecryptfs-utils-97

Changed in ecryptfs:
status: New → In Progress
importance: Undecided → High
Changed in ecryptfs-utils (Ubuntu):
importance: Undecided → High
Changed in ecryptfs:
assignee: nobody → Dustin Kirkland (kirkland)
Changed in ecryptfs-utils (Ubuntu):
assignee: nobody → Kees Cook (kees)
Changed in ecryptfs:
status: In Progress → Fix Committed
Changed in ecryptfs:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.