Whamcloud - gitweb
LU-15911 enc: null encrypted names is embedded llcrypt only 20/47520/4
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 3 Jun 2022 09:16:35 +0000 (11:16 +0200)
committerSebastien Buisson <sbuisson@ddn.com>
Thu, 30 Jun 2022 13:26:57 +0000 (15:26 +0200)
commit98621cb3f33e39c458ef1c02da3b23a69d481b61
tree98752d120496235b17250f13d84d034d02ef6663
parentb97f076b7489bf4e6d4bfdefaa4e27308620d33d
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.

Fixes: e68d496ada ("LU-15858 sec: reinstate null encryption for file names")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ibe52feb670a00c9f421907ecd438bcccc62856f0
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/tests/sanity-sec.sh