]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: Remove unnecessary grow_file() function
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Wed, 23 Feb 2011 06:14:19 +0000 (00:14 -0600)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Mon, 28 Mar 2011 06:47:43 +0000 (01:47 -0500)
commit0384770468ceec11baeb8fdbe0b7fd63ae6bf968
treecaa1915ec444bbdb52a1646274d73e733979bb44
parent3e75644065755cbdbd8a55a9221c4d85b1937ed0
eCryptfs: Remove unnecessary grow_file() function

When creating a new eCryptfs file, the crypto metadata is written out
and then the lower file was being "grown" with 4 kB of encrypted zeroes.
I suspect that growing the encrypted file was to prevent an information
leak that the unencrypted file was empty. However, the unencrypted file
size is stored, in plaintext, in the metadata so growing the file is
unnecessary.

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