RE: [f2fs-dev] [PATCH 1/3] f2fs crypto: check context consistent for rename2

2015-05-28 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Friday, May 29, 2015 10:29 AM > To: Chao Yu > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 1/3] f2fs crypto: check cont

Re: [f2fs-dev] [PATCH 1/3] f2fs crypto: check context consistent for rename2

2015-05-28 Thread Jaegeuk Kim
On Thu, May 28, 2015 at 10:07:26AM -0700, Jaegeuk Kim wrote: > Hi Chao, > > On Mon, May 25, 2015 at 06:07:02PM +0800, Chao Yu wrote: > > For exchange rename, we should check context consistent of encryption > > between new_dir and old_inode or old_dir and new_inode. Otherwise > > inheritance of pa

Re: [PATCH 1/3] f2fs crypto: check context consistent for rename2

2015-05-28 Thread Jaegeuk Kim
Hi Chao, On Mon, May 25, 2015 at 06:07:02PM +0800, Chao Yu wrote: > For exchange rename, we should check context consistent of encryption > between new_dir and old_inode or old_dir and new_inode. Otherwise > inheritance of parent's encryption context will be broken. > > Signed-off-by: Chao Yu >

[PATCH 1/3] f2fs crypto: check context consistent for rename2

2015-05-25 Thread Chao Yu
For exchange rename, we should check context consistent of encryption between new_dir and old_inode or old_dir and new_inode. Otherwise inheritance of parent's encryption context will be broken. Signed-off-by: Chao Yu --- fs/f2fs/namei.c | 9 + 1 file changed, 9 insertions(+) diff --git