Whamcloud - gitweb
LU-15911 enc: null encrypted names is embedded llcrypt only 20/47520/6
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 3 Jun 2022 09:16:35 +0000 (11:16 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Sep 2022 02:56:28 +0000 (02:56 +0000)
commit4887aff7f10423674939682a2fd56f0490224e6e
tree4fa09c61acc8eb3afe65ebdf455f6aac6aadf75a
parentdbe3286280d06f58af9afbbd66f76d12d2c95fcb
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
Reviewed-on: https://review.whamcloud.com/47520
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: James Simmons <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