]> bbs.cooldavid.org Git - net-next-2.6.git/commit
eCryptfs: Fix encrypted file name lookup regression
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Wed, 25 Aug 2010 15:26:37 +0000 (10:26 -0500)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Fri, 27 Aug 2010 15:50:53 +0000 (10:50 -0500)
commit93c3fe40c279f002906ad14584c30671097d4394
tree9e18819c7abfe2bc6b15e924236efd36a0601780
parent7371a38201d04124a9ff2cf05059731d7c1e35a5
eCryptfs: Fix encrypted file name lookup regression

Fixes a regression caused by 21edad32205e97dc7ccb81a85234c77e760364c8

When file name encryption was enabled, ecryptfs_lookup() failed to use
the encrypted and encoded version of the upper, plaintext, file name
when performing a lookup in the lower file system. This made it
impossible to lookup existing encrypted file names and any newly created
files would have plaintext file names in the lower file system.

https://bugs.launchpad.net/ecryptfs/+bug/623087

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/crypto.c
fs/ecryptfs/inode.c