You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
authvar writes .auth files with 4-byte EFI var attrs header before the authenticated variable itself. This throws off the format (compared to sbsigntools sign-efi-sig-list), and firmware does not accept the file as valid. Removing the 4 bytes, the generated .auth file is equivalent to one generated by sbsigntools, which is accepted by my firmware setup screen. Is there a particular reason for the extra 4 bytes?
efivarfs expects the 4-bytes of attrs ahead of the contents when writing. The generated files with the 4-byte header can be used to write efivars like so*: cat db.auth > /sys/firmware/efi/efivars/db-$uuid
*I have written other UEFI variables this way, but this isn't working for db.auth.
Hi,
authvar writes .auth files with 4-byte EFI var attrs header before the authenticated variable itself. This throws off the format (compared to sbsigntools sign-efi-sig-list), and firmware does not accept the file as valid. Removing the 4 bytes, the generated .auth file is equivalent to one generated by sbsigntools, which is accepted by my firmware setup screen. Is there a particular reason for the extra 4 bytes?
This code adds the attributes to the output file:
pesign/src/authvar_context.c
Lines 168 to 170 in 45d6cb7
My goal was to replace sign-efi-sig-list from sbsigntools with authvar to generate signed .auth files. For sbsigntools, I use:
The authvar/efisecdb replacement is:
The text was updated successfully, but these errors were encountered: