Re: [f2fs-dev] [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

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-ker...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH 1/3] f2fs crypto: check context consistent

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 parent's

[f2fs-dev] [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 chao2...@samsung.com --- fs/f2fs/namei.c | 9 + 1 file changed, 9