Whamcloud - gitweb
LU-15911 enc: null encrypted names is embedded llcrypt only
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 27 Jun 2022 08:56:45 +0000 (10:56 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 1 Jul 2022 04:08:33 +0000 (04:08 +0000)
commit18630c41366fe0e02d68be1ea3d01d5b4c52b705
tree09e7c285d4eb0afeeab04220093713927e87770d
parent438d9dfbeac3bf3065b22d860416eef39921334f
LU-15911 enc: null encrypted names is embedded llcrypt only

enable_filename_encryption tunable only makes sense when Lustre client
is built against embedded llcrypt. When built against in-kernel
fscrypt, this tunable is silently ignored, as fscrypt always carries
out file name encryption.

So have the enable_filename_encryption tunable only when Lustre client
is built against embedded llcrypt. Also fix sanity-sec test_54 so that
it works for in-kernel fscrypt.

Lustre-change: https://review.whamcloud.com/47520
Lustre-commit: TBD (98621cb3f33e39c458ef1c02da3b23a69d481b61)

Fixes: e68d496ada ("LU-15858 sec: reinstate null encryption for file names")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ibe52feb670a00c9f421907ecd438bcccc62856f0
Reviewed-on: https://review.whamcloud.com/47785
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/tests/sanity-sec.sh