Skip to content

Commit

Permalink
fscrypt: Use constant protector name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Lauhoff committed Sep 20, 2022
1 parent d5f31b5 commit 3fe36da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util/fscrypt/fscrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func Unlock(
metadataDirExists, kernelPolicyExists)
}

protectorName := fmt.Sprintf("%s-%s", FscryptProtectorPrefix, volEncryption.GetID())
protectorName := FscryptProtectorPrefix

switch volEncryption.KMS.RequiresDEKStore() {
case kms.DEKStoreMetadata:
Expand Down

0 comments on commit 3fe36da

Please sign in to comment.