aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/tnc_misc.c
diff options
context:
space:
mode:
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>2010-03-22 00:41:35 -0500
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>2010-04-19 14:41:51 -0500
commit3a60a1686f0d51c99bd0df8ac93050fb6dfce647 (patch)
tree8b1a32c122e86022f6397a9f5e82900783717aab /fs/ubifs/tnc_misc.c
parentf4e60e6b303bc46cdc477d3174dbf9cb5dd013aa (diff)
downloadkernel_samsung_smdk4412-3a60a1686f0d51c99bd0df8ac93050fb6dfce647.zip
kernel_samsung_smdk4412-3a60a1686f0d51c99bd0df8ac93050fb6dfce647.tar.gz
kernel_samsung_smdk4412-3a60a1686f0d51c99bd0df8ac93050fb6dfce647.tar.bz2
eCryptfs: Decrypt symlink target for stat size
Create a getattr handler for eCryptfs symlinks that is capable of reading the lower target and decrypting its path. Prior to this patch, a stat's st_size field would represent the strlen of the encrypted path, while readlink() would return the strlen of the decrypted path. This could lead to confusion in some userspace applications, since the two values should be equal. https://bugs.launchpad.net/bugs/524919 Reported-by: Loïc Minier <loic.minier@canonical.com> Cc: stable@kernel.org Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'fs/ubifs/tnc_misc.c')
0 files changed, 0 insertions, 0 deletions