summaryrefslogtreecommitdiff
path: root/mok.c
AgeCommit message (Collapse)Author
2020-09-09Fix build error in mok.c15.1Thomas Frauendorfer | Miray Software
2020-08-04Make vendor_dbx correctly propagate as well.Alexander Burmashev
Signed-off-by: Peter Jones <pjones@redhat.com> This is a modified upstream patch, so it applies fine to shim-15 Signed-off-by: Alex Burmashev <alexander.burmashev@oracle.com>
2020-08-04Mok: make sure vendor_cert and vendor_db both get propageted forwardAlex Burmashev
Signed-off-by: Peter Jones <pjones@redhat.com> This is a modified upstream patch, so it applies fine to shim-15 Signed-off-by: Alex Burmashev <alexander.burmashev@oracle.com>
2020-08-04mok: also mirror the build cert to MokListRTGary Lin
If the build cert is enabled, we should also mirror it to MokListRT. Signed-off-by: Gary Lin <glin@suse.com> Upstream-commit-id: aecbe1f99b6
2020-08-04mok: consolidate mirroring code in a helper instead of using gotoPeter Jones
There's no reason to complicate the logic with a goto here, instead just pull the logic we're jumping to out to a helper function. Signed-off-by: Peter Jones <pjones@redhat.com>
2020-08-04mok: fix the mirroring of RT variablesGary Lin
When there is no key in MokList, import_mok_state() just skipped MokList even though it should always mirror the vendor cert. Besides, the faulty check of 'present' and 'addend' invalidates the mirroring of MokListXRT, MokSBStateRT, and MokIgnoreDB. https://github.com/rhboot/shim/issues/154 Signed-off-by: Gary Lin <glin@suse.com>
2020-08-04Make sure that MOK variables always get mirroredPatrick Uiterwijk
Without this, if a Mok variable doesn't exist in Boot Services, it will also not be copied to Runtime, even if we have data to be added to it (vendor cert). This patch makes sure that if we have extra data to append, we still mirror the variable. Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-03-12shim: Make our variable validation and mirroring table driven.Peter Jones
This makes it so shim's idea of Mok variables all resides in one table of data, and we don't need a bunch of nearly identical ad-hoc functions to handle each of them. Signed-off-by: Peter Jones <pjones@redhat.com>