]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
common/encrypt: allow the use of 'fscrypt:' as key prefix
authorLuís Henriques <lhenriques@suse.de>
Tue, 5 Apr 2022 09:46:33 +0000 (10:46 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Apr 2022 15:44:24 +0000 (23:44 +0800)
commit09efb6c78d0f2ee03a59e3824d9e211332b9a711
tree0fdff305f338992f722b0cb5a4d7a6a43c9b952c
parent424acebff4fa2f99c5f3174787887d83e5481af7
common/encrypt: allow the use of 'fscrypt:' as key prefix

fscrypt keys have used the $FSTYP as prefix.  However this format is being
deprecated and newer kernels are expected to use the generic 'fscrypt:'
prefix instead.  This patch adds support for this new prefix, and only
uses $FSTYP on filesystems that didn't initially supported it, i.e. ext4 and
f2fs.  This will allow old kernels to be tested.

Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/encrypt