Re: [PATCH 3/3] eCryptfs: Encrypted passthrough

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael Halcrow
Date: Tuesday, January 9, 2007 - 4:44 pm

On Tue, Jan 09, 2007 at 02:42:03PM -0800, Andrew Morton wrote:

We will look into doing this.


Yes:

---
int ecryptfs_read_xattr_region(char *page_virt, struct dentry*ecryptfs_dentry)
{
	ssize_t size;
	int rc = 0;

	size = ecryptfs_getxattr(ecryptfs_dentry, ECRYPTFS_XATTR_NAME,
				 page_virt, ECRYPTFS_DEFAULT_EXTENT_SIZE);
---

That winds up calling the lower filesystem's getxattr with
ECRYPTFS_DEFAULT_EXTENT_SIZE as the size parameter. eCryptfs validates
this value against PAGE_CACHE_SIZE in main.c::ecryptfs_init().


We will work on some patches to address these issues.

Mike
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] eCryptfs: Support metadata in xattr, Michael Halcrow, (Tue Jan 9, 3:21 pm)
[PATCH 1/3] eCryptfs: xattr flags and mount options, Michael Halcrow, (Tue Jan 9, 3:22 pm)
[PATCH 2/3] eCryptfs: Generalize metadata read/write, Michael Halcrow, (Tue Jan 9, 3:22 pm)
[PATCH 3/3] eCryptfs: Encrypted passthrough, Michael Halcrow, (Tue Jan 9, 3:23 pm)
Re: [PATCH 0/3] eCryptfs: Support metadata in xattr, Andrew Morton, (Tue Jan 9, 3:35 pm)
Re: [PATCH 3/3] eCryptfs: Encrypted passthrough, Andrew Morton, (Tue Jan 9, 3:42 pm)
Re: [PATCH 0/3] eCryptfs: Support metadata in xattr, Michael Halcrow, (Tue Jan 9, 4:23 pm)
Re: [PATCH 3/3] eCryptfs: Encrypted passthrough, Michael Halcrow, (Tue Jan 9, 4:44 pm)