fscrypt: Use constant protector name

Use constant protector name 'ceph-csi' instead of constant prefix
concatenated with the volume ID. When cloning volumes the ID changes
and fscrypt protected directories become inunlockable due to the
protector name change

Signed-off-by: Marcel Lauhoff <marcel.lauhoff@suse.com>
This commit is contained in:
Marcel Lauhoff 2022-08-09 22:57:21 +02:00 committed by mergify[bot]
parent 97cb1b6672
commit 33c33a8b49

View File

@ -383,7 +383,7 @@ func Unlock(
metadataDirExists, kernelPolicyExists) metadataDirExists, kernelPolicyExists)
} }
protectorName := fmt.Sprintf("%s-%s", FscryptProtectorPrefix, volEncryption.GetID()) protectorName := FscryptProtectorPrefix
switch volEncryption.KMS.RequiresDEKStore() { switch volEncryption.KMS.RequiresDEKStore() {
case kms.DEKStoreMetadata: case kms.DEKStoreMetadata: