Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1199985
| From | Tyler Hicks <tyhicks@canonical.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path |
| Date | 2015-08-04 17:00 +0200 |
| Message-ID | <pTLRa-5hl-53@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <pSWlz-5Zn-1@gated-at.bofh.it> <pTgtY-1Dy-3@gated-at.bofh.it> <pTsOu-2PZ-13@gated-at.bofh.it> <pTx1L-Kt-1@gated-at.bofh.it> <pTDgS-1ip-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On 2015-08-04 07:46:50, Richard Weinberger wrote: > Tyler, > > Am 04.08.2015 um 01:07 schrieb Tyler Hicks: > >> Okay, then I'd argument to give my patch a try although it is not the solution > >> to the problem I've reported. :-) > >> If you don't mind I'll resend with a proper changelog. > > > > That patch isn't correct since it assumes that all eCryptfs super blocks > > are equal if the lower paths (and, ultimately, the lower inode) are > > equal. However, the lower path is only one of many properties of an > > eCryptfs superblock. For example, the second mount may have been > > configured to use a different file encryption key. > > How would this work if I mount /foo using AES to /mnt_a > and /foo again using 3DES to /mnt_b? > Wouldn't both ecrytpfs instances kill each other's files? No, they shouldn't. Each file contains metadata that describes the cipher, cipher mode, key signature, etc., that was used to encrypt the file. When the file is initially opened, the process must have the correct key in the keyrings that it has access to. After that requirement has been met, eCryptfs is smart enough to parse the metadata and use the correct cipher and mode. The mount options, such as ecryptfs_cipher, only specify what should be used when creating new files. Tyler
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path Tyler Hicks <tyhicks@canonical.com> - 2015-08-02 03:10 +0200
Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path Richard Weinberger <richard@nod.at> - 2015-08-02 10:00 +0200
Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path Tyler Hicks <tyhicks@canonical.com> - 2015-08-03 07:30 +0200
Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path Richard Weinberger <richard@nod.at> - 2015-08-03 20:40 +0200
Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path Tyler Hicks <tyhicks@canonical.com> - 2015-08-04 01:10 +0200
Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path Richard Weinberger <richard@nod.at> - 2015-08-04 07:50 +0200
Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path Tyler Hicks <tyhicks@canonical.com> - 2015-08-04 17:00 +0200
[PATCH] eCryptfs: Invalidate dcache entries when lower i_nlink is zero Tyler Hicks <tyhicks@canonical.com> - 2015-08-06 00:10 +0200
csiph-web