From: Tyler Hicks Date: Mon, 22 Mar 2010 05:41:35 +0000 (-0500) Subject: eCryptfs: Decrypt symlink target for stat size X-Git-Tag: v2.6.34-rc5~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a60a1686f0d51c99bd0df8ac93050fb6dfce647;p=pandora-kernel.git 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 Cc: stable@kernel.org Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed