encfs on top of eCryptfs triggers new flush-ecryptfs- process at relog

Bug #1174984 reported by Thaddaeus Tintenfisch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ecryptfs-utils (Ubuntu)
Invalid
Undecided
Unassigned
encfs (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Unmounting an encfs encrypted directory does not work properly, because it somehow causes a new flush-ecryptfs- process to spawn at logout/login. This process blocks the corresponding partition from being cleanly unmounted at shutdown (-> orphaned inodes).

$ encfs ~/.Cloud ~/Cloud
$ fusermount -u ~/Cloud

$ uname -a
Linux acer-tm8471 3.9.0-030900rc8-generic #201304211835 SMP Sun Apr 21 22:35:53 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

$ apt-cache policy encfs
encfs:
  Installed: 1.7.4-2.4build1
  Candidate: 1.7.4-2.4build1
  Version table:
 *** 1.7.4-2.4build1 0
        500 http://de.archive.ubuntu.com/ubuntu/ raring/universe amd64 Packages
        100 /var/lib/dpkg/status

Tags: encfs raring
Revision history for this message
Tyler Hicks (tyhicks) wrote :

eCryptfs and encfs are two very different things. There's no way that encfs is triggering a flush-ecryptfs- process.

Do you have your home directory mounted with eCryptfs? To check, log in and then open the /proc/mounts file to see if /home/$USER is mounted as an eCryptfs mount.

Changed in ecryptfs-utils (Ubuntu):
status: New → Incomplete
Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

Yes, the /home partition is encrytped as well (ecryptfs).

The problem is, that an additional flush-ecryptfs- process appears every time I mount/unmount my encfs encrypted directory (/home/thad/.Cloud) and relog the user. It does only happen while working with encfs and there are no errors or whatsoever while mounting/unmounting. However, once I initiate a system shutdown, the /home partition can't be unmounted cleanly, because it is still busy.

Revision history for this message
Tyler Hicks (tyhicks) wrote :

Ok, so you have encfs mounted on top of eCryptfs. That isn't an environment that I test as the eCryptfs maintainer (I only test eCryptfs mounted on top of a variety of filesystems), so I'm not immediately sure what is happening.

Thanks for clarifying your setup.

Changed in ecryptfs-utils (Ubuntu):
status: Incomplete → New
summary: - encfs spawns new flush-ecryptfs- process at logout
+ encfs on top of eCryptfs triggers new flush-ecryptfs- process at relog
Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

Identical problem on Ubuntu Forums: http://ubuntuforums.org/showthread.php?t=2109303

Tyler, were you able to reproduce this bug? Why would an additional flush-ecryptfs- process appear after every relog?

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

I can't reproduce this issue anymore after installing the latest Kernel 3.9.2.

$ uname -a
Linux acer-tm8471 3.9.2-030902-generic #201305111035 SMP Sat May 11 14:36:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Changed in ecryptfs-utils (Ubuntu):
status: New → Invalid
Changed in encfs (Ubuntu):
status: New → Invalid
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.