Page MenuHomeFreeBSD

Implement Secure Boot in loader.
AbandonedPublic

Authored by kd on Jan 9 2019, 6:16 PM.
Tags
None
Referenced Files
F81963372: D18798.diff
Tue, Apr 23, 8:09 PM
Unknown Object (File)
Sat, Apr 20, 2:08 PM
Unknown Object (File)
Fri, Apr 19, 10:26 PM
Unknown Object (File)
Fri, Apr 19, 10:26 PM
Unknown Object (File)
Fri, Apr 19, 4:41 PM
Unknown Object (File)
Fri, Apr 19, 10:38 AM
Unknown Object (File)
Wed, Apr 17, 11:42 AM
Unknown Object (File)
Feb 16 2024, 10:21 AM

Details

Reviewers
trasz
cem
sjg
mw
wma
Group Reviewers
secteam
Summary

This patch adds signature verification routines to the loader. It uses the newly added secureboot library. The trusted/revoked certificates are obtained from UEFI db/dbx variables. Support for authorized timestampts stored in dbt are not implemented. Headers with definitions of UEFI standardized structures were copied from edk2

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kd created this object with visibility "Custom Policy".
kd changed the visibility from "Custom Policy" to "Public (No Login Required)".

There is potentially a lot of overlap with D16335 libsecureboot could be a better name for that than libve.
It would be good to leverage both.

For example D16335 contains an api which can verify hash of file as side effect of reading (reduces boot overhead),
it isn't used yet due to the considerable churn on loader module reading logic.
Also D16335 can work without UEFI - but the combination would be better.

Phab is a horrible way to conduct a discussion though - perhaps an email exchange would be useful.