All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tyler Hicks <tyhicks@canonical.com>
To: Kenneth Waegeman <Kenneth.Waegeman@UGent.be>
Cc: ecryptfs@vger.kernel.org
Subject: Re: Practical questions about locking and re-encrypting
Date: Mon, 22 Sep 2014 10:58:25 -0500	[thread overview]
Message-ID: <20140922155824.GA17376@boyd> (raw)
In-Reply-To: <20140922173257.Horde.aPhFRVyqiOZUIEEpuKgAfuA@webmail.ugent.be>

[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]

On 2014-09-22 17:32:57, Kenneth Waegeman wrote:
> Hi all,

Hi Kenneth

> 
> 
> We want to use ecryptfs on GPFS. How does ecryptfs handles locking if an
> encrypted directory is mounted on different boxes ? Is data corruption
> possible while writing?

eCryptfs is not well suited for being stacked on top of a distributed
file system such as GPFS.

That would result in each node having its own eCryptfs mount. Each
eCryptfs mount has its own page cache. eCryptfs doesn't do any sort of
coordination between remote mounts and there's no way for the lower
filesystem to make eCryptfs aware that file contents, which may be in
the eCryptfs page cache, have been modified by a remote node.

That means that if a file is read into the eCryptfs page cache on node A
and then that file is updated on node B, node A will never know an
update has been made and will never invalidate the old, cached file
contents from its page cache.

> 
> Another question: Is there an easy way to re-encrypt a directory with
> another key? (when having compromised key or so).

Unfortunately, no. You'd need to set up a new eCryptfs mount, with a new
key, and copy the files between the two eCryptfs mounts.

Tyler

> 
> 
> Thank you!!
> 
> Kenneth
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe ecryptfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2014-09-22 15:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22 15:32 Practical questions about locking and re-encrypting Kenneth Waegeman
2014-09-22 15:58 ` Tyler Hicks [this message]
2014-09-23  9:39   ` Kenneth Waegeman
2014-09-23 15:53     ` Tyler Hicks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140922155824.GA17376@boyd \
    --to=tyhicks@canonical.com \
    --cc=Kenneth.Waegeman@UGent.be \
    --cc=ecryptfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.