Whamcloud - gitweb
LU-15911 enc: null encrypted names is embedded llcrypt only 21/48521/2
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 3 Jun 2022 09:16:35 +0000 (11:16 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 26 Sep 2022 16:57:42 +0000 (16:57 +0000)
commitebe12fd674a37747f369d5e477d9273cb66c3f8c
tree060c06fed5b73dfd3163263ed9153d1f591ffbe0
parent56c0d6316fbf29eac019f5a7c823199592027b25
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: 4887aff7f10423674939682a2fd56f0490224e6e

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