-
Notifications
You must be signed in to change notification settings - Fork 59
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
Do not fail if EK cert is not present in TPM NV #214
Conversation
tagging @puiterwijk |
3014b52
to
ce5bd73
Compare
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 very much for this patch!
@@ -40,11 +53,8 @@ fn is_empty(buf: &[u8]) -> bool { | |||
|
|||
#[derive(Debug, Serialize, Deserialize)] | |||
struct Register<'a> { | |||
#[serde( | |||
serialize_with = "serialize_as_base64", | |||
skip_serializing_if = "is_empty" |
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.
Hah, right. I thought I had made the code check whether ekcert
is in the json, but instead I made it assume that that's there and just check if that's json null
.
Thanks for finding and fixing that!
@ueno could you rebase it? Then me or anyone else with write access can merge this! |
Thank you for the review; rebased. |
According to the spec (4.5.2), it is not mandatory that an EK certificate is pre-provisioned in NVRAM; actually some TPM chips do not have it, e.g., AMD fTPM, and the Python registrar tolerates "ekcert: null". Signed-off-by: Daiki Ueno <[email protected]>
According to the spec (4.5.2), it is not mandatory that an EK
certificate is pre-provisioned in NVRAM; actually some TPM chips do
not have it, e.g., AMD fTPM, and the Python registrar tolerates
"ekcert: null".
Signed-off-by: Daiki Ueno [email protected]