updatedb support missing for eCryptfs

Bug #1101375 reported by Stefan Wagner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eCryptfs
Won't Fix
Undecided
Unassigned

Bug Description

I'm a recent user of eCryptfs with Xubuntu 12.04. My whole home is crypted.

Now I realize that all my files aren't found by updatedb, and I had a look into /etc/updatedb.conf, and found the encrypted partition to be excluded from search:

<code>
cat /etc/updatedb.conf
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn" PRUNEPATHS="/tmp /var/spool /media /home/.ecryptfs"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs"
</code>

I guess I know the reason: Sometimes, knowing the filename, is already a vulnerability. But for some users it might be enough to crypt the content of the files - leaking the names might be ok.

For the rest it would be useful to write the index to the home dir which is encrypted. Maybe this could be made an option, suggested while installing ecryptfs?

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

Hi Stefan - Thanks for the bug report. As you alluded to, eCryptfs mounts are pruned to prevent leaking the plaintext filenames to unencrypted storage.

The updatedb man page has an example of how someone could create a private mlocate database in a location of their choice. The -d option of mlocate would then need to be used to point to the private database, as well as the public database. This could be done with a bash alias or something similar.

This is not something that I'm interested in rolling out to all encrypted home users at this time. I think the need for a private mlocate database is probably rather low and those users can follow the steps that I mentioned above. I'm marking as Won't Fix for that reason.

Changed in ecryptfs:
status: New → Won't Fix
Revision history for this message
Stefan Wagner (wagner-stefan) wrote :

Thanks for answer and info.

I created an entry to my personal crontab for updatedb:

<pre>
48 19 * * * updatedb -l 0 -o /home/stefan/lib/mlocate.db -U /home/stefan
</pre>

Yes, I have a subdir ~/lib in my home. I then added
<pre>
export LOCATE_PATH=~/lib/mlocate.db
</pre>
to my ~/.bashrc

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.