Whamcloud - gitweb
LU-16444 enc: null-enc names cannot be digested form 50/49550/3
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 4 Jan 2023 15:10:02 +0000 (16:10 +0100)
committerSebastien Buisson <sbuisson@ddn.com>
Thu, 5 Jan 2023 13:52:24 +0000 (14:52 +0100)
commit5487e006b1ca152be665729a4fdf273c6109f0f4
treee64018ebbc661f518b35b26b818339786ee2d1a4
parentd6411c87a98be0a7e8b7460bf537c6502b6daeca
LU-16444 enc: null-enc names cannot be digested form

When encrypted files have their names encrypted, long names are in
digested form in case access is done without the encryption key. The
digest is base64-encoded, and prepended with '_'.
With null encryption for file names, names are always plain text. In
this case, a legitimate '_' at the start of a name must not be
interpreted as a digested form.

sanity-sec test_54 is improved to test the case of a file whose name
starts with '_'.

Fixes: f18c87cb53 ("LU-13717 sec: handle null algo for filename encryption")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Idaad186afd06cfbabbe1d13e78f083d12876c8ff
lustre/llite/crypto.c
lustre/tests/sanity-sec.sh