Whamcloud - gitweb
EX-5497 sec: fix encrypted symlink length
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 4 Jul 2022 13:31:03 +0000 (15:31 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 7 Jul 2022 18:12:46 +0000 (18:12 +0000)
commit0c34fb4a24d867fcb1cb337b42bc8efdbca08629
treedc2b36bf31cb9e98275ce2097507b3556410347d
parentde66a936c4e992e522ee3a891155ac10a982f346
EX-5497 sec: fix encrypted symlink length

Length of encrypted symlink needs to be the length of the symlink
target. To achieve this, we need to read the symlink target and
decrypt or decode it in ->getattr(). This is possible thanks to an
enhanced getattr capable of getting more stat information.

Unfortunately, configure check for kernel support of this enhanced
getattr is incomplete, making the code call the basic getattr.

Change-Id: I03bf68679a02542b3fb696bb7458ff3276423784
Fixes: ca483b3b85 ("LU-14651 llite: extend inode methods with user namespace arg")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-on: https://review.whamcloud.com/47863
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/symlink.c