summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAristo Chen <[email protected]>2026-07-20 08:29:14 +0000
committerHeinrich Schuchardt <[email protected]>2026-07-27 18:50:28 +0200
commitaf5234975669b64898ecde92b4b2d6236d24a495 (patch)
tree74417ba8633aad1d01d2b6c5258915fab0b725cb /include
parent7a63ea588911984ffb65893c2f31797a4bb65bf2 (diff)
test: check default GUID selection of signature database variables
The name to GUID mapping that "env set -e" applies when no -guid option is given was not covered by any test, which is how the wrong default GUID for "dbr" went unnoticed until the previous commit. Add a test case that enrolls each of db, dbx, dbt and dbr in setup mode without an explicit -guid option and checks that every variable is created under the image security database GUID and not under the global variable GUID. Then enroll PK and KEK, also without -guid, and check that both are created under the global variable GUID and not under the image security database GUID. This is also the first coverage of dbt and dbr anywhere under test/. The signature database enrollment happens in setup mode because once secure boot is enabled, efi_variable_authenticate() only accepts writes to PK, KEK, db and dbx; PK and KEK are enrolled last because installing PK leaves setup mode. Signed-off-by: Aristo Chen <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions