no sysfs entry in /etc/mtab breaks encrypted-home
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ecryptfs-utils (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland | ||
util-linux (Ubuntu) |
Fix Released
|
Critical
|
Steve Langasek |
Bug Description
encrypted-home directories were broken with the latest upgrade of util-linux.
The issue is that ecryptfs tries to find a sysfs mount point by reading /etc/mtab (ie, it wants to find 'sysfs' and '/sys').
in ecryptfs/
The util-linux upgrade to 2.19.1-2ubuntu1 does not write an entry in /etc/mtab for sysfs.
The end resupt is that the user ends up with file *content* decrypted, but not filenames. They'll see a bunch of filenames with "ECRYPTFS_
ECRYPTFS_
ECRYPTFS_
ECRYPTFS_
1 possible fix for this is for ecryptfs to read /proc/mounts rather than /etc/mtab.
A work around for this is to:
a.) log in as another user, edit /etc/mtab and add 'sysfs' entry (see /proc/mounts for example), then log in as new user
b.) backlevel util-linux and reboot (so /etc/mtab is updated with sysfs entry via old util-linux).
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: util-linux 2.19.1-2ubuntu1
ProcVersionSign
Uname: Linux 3.0-1-generic x86_64
Architecture: amd64
Date: Sun Jun 26 10:50:31 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: util-linux
UpgradeStatus: Upgraded to oneiric on 2010-11-15 (222 days ago)
Related branches
Changed in util-linux (Ubuntu): | |
importance: | High → Critical |
Changed in ecryptfs-utils (Ubuntu): | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in util-linux (Ubuntu): | |
status: | Confirmed → Triaged |
assignee: | nobody → Steve Langasek (vorlon) |
tags: | added: patch |
Changed in util-linux (Ubuntu): | |
assignee: | LaMont Jones (lamont) → Steve Langasek (vorlon) |
Changed in ecryptfs-utils (Ubuntu): | |
status: | Triaged → In Progress |
For others affected by this, here's the mtab line to add:
sysfs /sys sysfs rw,noexec, nosuid, nodev 0 0
And if you had previously logged in as the affected user, you'll now have duplicate files in your home directory (e.g. a normal Pictures folder and the encrypted-filename Pictures folder).
To clean up: ecryptfs/ USER/.Private
1) Go to /home/.
2) Move anything not called ECRYPT* to a safe place to get it out of the way
3) Then finally log in as the affected user again