Comment 5 for bug 444656

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 444656] Re: [PATCH] detect users with encrypted home for kernel bug reports

Sorry, so if ~/.ecryptfs/wrapped-passphrase exists, but Private.mnt
does not, the assumption is that you have an Encrypted-Private.

If ~/.ecryptfs/wrapped-passphrase exists, and ~/.ecryptfs/Private.mnt
exists, then Private.mnt is consulted for the mount point for the
eCryptfs mount.

In most cases, this is either $HOME or $HOME/Private. However, some
users change this to other various directories. It really doesn't
matter to mount.ecryptfs_private, as long as the user OWNS the
directory specified in the file.

To be very specific, something like this, Martin...

if [ -e ~/.ecryptfs/wrapped-passphrase ]; then
  [ -e ~/.ecryptfs/Private.mnt ] && echo $(cat
~/.ecryptfs/Private.mnt) "is encrypted" || echo "$HOME/Private is
encrypted"
else
  echo "No automounted eCryptfs here. Move along."
fi