Lines Matching full:db
17 * On T2 Macs reading the db and dbx efi variables to load UEFI Secure Boot
46 * the certs/hashes in the UEFI db variable for verification purposes. If it
47 * is set, we should ignore the db variable also and the true return indicates
53 unsigned int db = 0; in uefi_check_ignore_db() local
54 unsigned long size = sizeof(db); in uefi_check_ignore_db()
57 status = efi.get_variable(L"MokIgnoreDB", &guid, NULL, &size, &db); in uefi_check_ignore_db()
69 void *db; in get_cert_list() local
80 db = kmalloc(lsize, GFP_KERNEL); in get_cert_list()
81 if (!db) in get_cert_list()
84 *status = efi.get_variable(name, guid, NULL, &lsize, db); in get_cert_list()
86 kfree(db); in get_cert_list()
87 pr_err("Error reading db var: 0x%lx\n", *status); in get_cert_list()
92 return db; in get_cert_list()
163 void *db = NULL, *dbx = NULL, *mokx = NULL; in load_uefi_certs() local
178 /* Get db and dbx. They might not exist, so it isn't an error in load_uefi_certs()
182 db = get_cert_list(L"db", &secure_var, &dbsize, &status); in load_uefi_certs()
183 if (!db) { in load_uefi_certs()
185 pr_debug("MODSIGN: db variable wasn't found\n"); in load_uefi_certs()
187 pr_err("MODSIGN: Couldn't get UEFI db list\n"); in load_uefi_certs()
189 rc = parse_efi_signature_list("UEFI:db", in load_uefi_certs()
190 db, dbsize, get_handler_for_db); in load_uefi_certs()
192 pr_err("Couldn't parse db signatures: %d\n", in load_uefi_certs()
194 kfree(db); in load_uefi_certs()