-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
secboot: check legacy path for keyring when reading the primary key #14966
base: fde-manager-features
Are you sure you want to change the base?
secboot: check legacy path for keyring when reading the primary key #14966
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## fde-manager-features #14966 +/- ##
=======================================================
Coverage ? 77.96%
=======================================================
Files ? 1139
Lines ? 153830
Branches ? 0
=======================================================
Hits ? 119937
Misses ? 26448
Partials ? 7445
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you
secboot/secboot_sb.go
Outdated
} | ||
|
||
// GetPrimaryKeyDigest retrieve the primary key for a disk from the | ||
// keyring and returns it digest. If the path given does not match |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: s/it/its/
05b58eb
to
2ae271a
Compare
In the case we update snapd with and old kernel, then reseal, the FDE state might be not set because we did not find the primary key from the initrd that set it in the legacy path. So if we do not find the key in the keyring, we should try and see if we find it in the old path.
2ae271a
to
b0a5f1f
Compare
No description provided.