All of lore.kernel.org
 help / color / mirror / Atom feed
* ecryptfs on sub-directory?
@ 2013-06-21 11:51 Leam Hall
  2013-06-21 13:09 ` Michael Chang
  0 siblings, 1 reply; 2+ messages in thread
From: Leam Hall @ 2013-06-21 11:51 UTC (permalink / raw)
  To: ecryptfs

Hey all, sorry for the newbie question. I didn't find the answer in the 
docs I found.

If I mount a filessystem on Linux, say /dev/sda4 as /opt, and create a 
directory under /opt; like /opt/backup. Can I use ecryptfs to mount 
/opt/backup onto itself so that just that portion of the file system is 
encrypted?

Thanks!

Leam

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ecryptfs on sub-directory?
  2013-06-21 11:51 ecryptfs on sub-directory? Leam Hall
@ 2013-06-21 13:09 ` Michael Chang
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Chang @ 2013-06-21 13:09 UTC (permalink / raw)
  To: Leam Hall; +Cc: ecryptfs

On Fri, Jun 21, 2013 at 7:51 AM, Leam Hall <leamhall@gmail.com> wrote:
> Hey all, sorry for the newbie question. I didn't find the answer in the docs
> I found.
>
> If I mount a filessystem on Linux, say /dev/sda4 as /opt, and create a
> directory under /opt; like /opt/backup. Can I use ecryptfs to mount
> /opt/backup onto itself so that just that portion of the file system is
> encrypted?

The impression that I get is that encrypting only part of the
filesystem is one of the primary use cases of ecryptfs. (For example,
if you have a single file system for / but want to have an encrypted
home directory.)

You may want to consider whether it is preferable to have separate
lower and upper mount points, e.g. /opt/backup and
/opt/.backup_encrypted or some such. That way, if /opt is mounted and
/opt/backup isn't, you don't accidentally clobber or try to use the
encrypted backing files.

--
Best regards,

Michael Chang

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-21 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21 11:51 ecryptfs on sub-directory? Leam Hall
2013-06-21 13:09 ` Michael Chang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.