[PATCH] trust machine keyring (MoK) by default
authorLuca Boccassi <bluca@debian.org>
Thu, 13 Oct 2022 22:22:06 +0000 (00:22 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 6 May 2025 19:33:52 +0000 (21:33 +0200)
From 585cbcb982bffc4a8cee2f3d8d099fc64f9a74b9 Mon Sep 17 00:00:00 2001
Forwarded: not-needed

Debian always trusted keys in MoK by default. Upstream made it
conditional on a new EFI variable being set.
To keep backward compatibility skip this check.

Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name trust-machine-keyring-by-default.patch

security/integrity/platform_certs/machine_keyring.c

index a401640a63cd1783d0291d98853678e00a252652..0627f14eacbee04d13d1a3e57122d2f76dbcb1a7 100644 (file)
@@ -68,10 +68,7 @@ static bool __init trust_moklist(void)
 
        if (!initialized) {
                initialized = true;
-               trust_mok = false;
-
-               if (uefi_check_trust_mok_keys())
-                       trust_mok = true;
+               trust_mok = true;
        }
 
        return trust_mok;