Encrypted home not mountable under chroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
schroot (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
Binary package hint: ecryptfs-utils
An schroot has the following fstab defined:
/proc /proc none rw,rbind 0 0
/sys /sys none rw,rbind 0 0
/dev /dev none rw,rbind 0 0
/home /home none rw,bind 0 0
/tmp /tmp none rw,bind 0 0
However, the encrypted home directory is not mounted properly within the chroot, nor will ecryptfs allow the private directory to be mounted manually from within the chroot:
$ schroot
W: Failed to change to directory ‘/home/codegnome’: No such file or directory
W: Falling back to directory ‘/’
I have no name!:/$ ecryptfs-
ERROR: Encrypted private directory is not setup properly
Expected behavior is that the chroot will automatically mount a currently-mounted private directory. Failing that, it should allow the user to mount the private home directory from within the chroot.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: ecryptfs-utils 87-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sat Apr 23 11:26:41 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ecryptfs-utils
UpgradeStatus: No upgrade log present (probably fresh install)
information type: | Public → Public Security |
information type: | Public Security → Public |
no longer affects: | dchroot (Ubuntu) |
no longer affects: | ecryptfs-utils (Ubuntu) |
I had this same issue, but I managed to work around it by changing exactly this file.
If you change
/home /home none rw,bind 0 0
to
/home /home none rw,rbind 0 0
the home folder gets mounted properly.
I hope this helps