• T
    eCryptfs: Remove unnecessary grow_file() function · bd4f0fe8
    Tyler Hicks 提交于
    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: NTyler Hicks <tyhicks@linux.vnet.ibm.com>
    bd4f0fe8
inode.c 32.4 KB