-
Notifications
You must be signed in to change notification settings - Fork 59
uki: describe .efifw section #216
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,10 +67,11 @@ UKIs consist of the following resources: | |
| * Optionally, a CSV file encoding the SBAT metadata for the image, in the `.sbat` section. The [SBAT format is defined by the Shim project](https://github.com/rhboot/shim/blob/main/SBAT.md), and used for UEFI revocation purposes. | ||
| * Optionally, a JSON file encoding expected PCR 11 hash values seen from userspace once the UKI has booted up, along with signatures of these expected PCR 11 hash values, in the `.pcrsig` section. The signatures must also match the key pair described below. | ||
| * Optionally, the public part of a public-private key pair in PEM format used to sign the expected PCR 11 value of the image, in the `.pcrpkey` section. | ||
| * Optionally, one or more firmware images, each in a separate `.efifw` section. Each is an opaque binary blob that can be used as UEFI firmware on the next reset. If multiple `.efifw` sections exist then one of them is selected according to the matching hardware. | ||
|
|
||
| Note that all of the sections defined above are singletons: | ||
| they may appear at most once, | ||
| except for the `.dtbauto` section which may appear multiple times. | ||
| except for the `.dtbauto` and `.efifw` sections which may each appear multiple times. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "each" sounds redundant here, but I'll defer to someone with more grammar skills. |
||
|
|
||
| Only the `.linux` section is required for the image to be considered a Unified *Kernel* Image. | ||
|
|
||
|
|
@@ -143,7 +144,7 @@ the measurements are interleaved: section name followed by section | |
| data, followed by the next section name and its section data, and so | ||
| on. | ||
|
|
||
| If multiple `.dtbauto` sections are present, only the one that is actually in use shall be measured. | ||
| If multiple `.dtbauto` or `.efifw` sections are present, only the one that is actually in use shall be measured. | ||
|
|
||
| ## JSON Format for `.pcrsig` | ||
| The format is a single JSON object, encoded as a zero-terminated `UTF-8` string. Each name in the object | ||
|
|
@@ -205,7 +206,7 @@ can appear multiple times in a single PE file and both acts as a separator betwe | |
| same UKI, and carries meta-information about the profile it is introducing. All regular UKI PE sections | ||
| listed above may appear multiple times in multi-profile UKIs, but only once before the first `.profile` PE | ||
| section, once between each subsequent pair of `.profile` sections, and once after the last `.profile` (except | ||
| for `.dtbauto`, which is allowed to be defined multiple times anyway, see above). Each `.profile` section | ||
| for `.dtbauto` and `.efifw`, which are allowed to be defined multiple times anyway, see above). Each `.profile` section | ||
| introduces and defines a profile, which are numbered from zero, and typically denoted with an `@` character | ||
| before the profile number, i.e. `@0`, `@1`, `@2`, … The sections listed in the PE binary before the first | ||
| `.profile` section make up a special profile called the *base profile*. | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
Not sure about this comma placement. I tried to stick with the style of the other points.