mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 15:20:17 +00:00
chore(sbat): add note about alignment of sbat.csv
This commit is contained in:
@@ -3,6 +3,9 @@ const SBAT_SIZE: usize = 512;
|
||||
|
||||
/// Define the SBAT attestation by including the sbat.csv file.
|
||||
/// See this document for more details: https://github.com/rhboot/shim/blob/main/SBAT.md
|
||||
/// NOTE: Alignment can't be enforced by an attribute, so instead the alignment is currently
|
||||
/// enforced by the SBAT_SIZE being 512. The build.rs will ensure that the sbat.csv is padded.
|
||||
/// This code will not compile if the sbat.csv is a different size than SBAT_SIZE.
|
||||
#[used]
|
||||
#[unsafe(link_section = ".sbat")]
|
||||
static SBAT: [u8; SBAT_SIZE] = *include_bytes!(concat!(env!("OUT_DIR"), "/sbat.csv"));
|
||||
|
||||
Reference in New Issue
Block a user