mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
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:
parent
97cb1b6672
commit
33c33a8b49
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user