Skip to content

efi: implement platform-agnostic arm64 host security checks - #564

Open
alexclewontin wants to merge 5 commits into
canonical:masterfrom
alexclewontin:check-host-security-arm64
Open

efi: implement platform-agnostic arm64 host security checks#564
alexclewontin wants to merge 5 commits into
canonical:masterfrom
alexclewontin:check-host-security-arm64

Conversation

@alexclewontin

Copy link
Copy Markdown
Member

This PR adds a framework for host security checks on arm64 platforms. It builds on #563 (which represents most of the diff), and is part of an attempt to split up #560.

It adds a generic framework to check host security on ARM64. Very few truly cross-platform APIs were found to be applicable to that ecosystem, but we can use the backing driver for the TPM to prove that a given TPM is a fTPM: if it is using the OP-TEE fTPM driver we can be sure that it is an fTPM. This is not conclusive (absence of that driver doesn't prove that a TPM is a dTPM), but it is a common reference implementation for the ARM ecosystem, so worth including.

CheckResult.Warnings is a CompoundError interface that RunChecks leaves
nil when no warnings were detected. Unwrap on a nil interface panics, so
only unwrap when warnings are present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant