sbsigntools/src
dann frazier f12484869c sbkeysync: Don't ignore errors from insert_new_keys()
If insert_new_keys() fails, say due to a full variable store, we currently
still exit(0). This can make it difficult to know something is wrong.
For example, Debian and Ubuntu implement a secureboot-db systemd service
to update the DB and DBX, which calls:

 ExecStart=/usr/bin/sbkeysync --no-default-keystores --keystore /usr/share/secureboot/updates --verbose

But although this seemed to succeed on my system, looking at the logs shows
a different story:

Inserting key update /usr/share/secureboot/updates/dbx/dbxupdate_x64.bin into dbx
Error writing key update: Invalid argument
Error syncing keystore file /usr/share/secureboot/updates/dbx/dbxupdate_x64.bin

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2020-08-18 12:06:39 -07:00
..
coff sbsigntool: add support for ARM and Aarch64 PE/COFF images 2016-01-27 11:50:19 -08:00
efivars.h sbvarsign: Improve default GUID choice 2012-08-24 20:57:00 +08:00
fileio.c sbsign, sbvarsign: support engine based private keys 2017-10-28 14:21:24 +01:00
fileio.h sbsign, sbvarsign: support engine based private keys 2017-10-28 14:21:24 +01:00
idc.c Fix some openssl 1.1.0 deprecated functions 2020-06-06 14:44:54 -07:00
idc.h Move sources to src/ subdirectory 2012-08-13 15:10:21 +08:00
image.c Fix PE/COFF checksum calculation 2019-07-27 15:20:49 -07:00
image.h sbsign, sbattach, sbverify: add multiple signature support 2014-12-19 16:42:37 -08:00
libcoff.h Move sources to src/ subdirectory 2012-08-13 15:10:21 +08:00
Makefile.am Enable -Werror for builds 2020-06-06 17:22:39 -07:00
sbattach.c Fix some openssl 1.1.0 deprecated functions 2020-06-06 14:44:54 -07:00
sbkeysync.c sbkeysync: Don't ignore errors from insert_new_keys() 2020-08-18 12:06:39 -07:00
sbsiglist.c Move EFI_CERT types to efivars.h 2012-08-24 20:00:15 +08:00
sbsign.c Fix some openssl 1.1.0 deprecated functions 2020-06-06 14:44:54 -07:00
sbvarsign.c Fix errors on 32 bit 2020-06-06 17:22:39 -07:00
sbverify.c sbverify: refer to unused function 2020-06-06 14:50:51 -07:00
verify.c Move sources to src/ subdirectory 2012-08-13 15:10:21 +08:00