]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fscrypt: make it clearer that key_prefix is deprecated
authorEric Biggers <ebiggers@google.com>
Mon, 25 Sep 2023 05:54:47 +0000 (22:54 -0700)
committerEric Biggers <ebiggers@google.com>
Mon, 25 Sep 2023 06:03:09 +0000 (23:03 -0700)
commit5970fbad1036d1015abe45651628b39b5bcb8a22
tree1a57e1fb991838e1658d7087cb9515bc6446fb52
parent6465e260f48790807eef06b583b38ca9789b6072
fscrypt: make it clearer that key_prefix is deprecated

fscrypt_operations::key_prefix should not be set by any filesystems that
aren't setting it already.  This is already documented, but apparently
it's not sufficiently clear, as both ceph and btrfs have tried to set
it.  Rename the field to legacy_key_prefix and improve the documentation
to hopefully make it clearer.

Link: https://lore.kernel.org/r/20230925055451.59499-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/keysetup_v1.c
fs/ext4/crypto.c
fs/f2fs/super.c
fs/ubifs/crypto.c
include/linux/fscrypt.h