Lines Matching defs:db
17 * On T2 Macs reading the db and dbx efi variables to load UEFI Secure Boot
47 * the certs/hashes in the UEFI db variable for verification purposes. If it
48 * is set, we should ignore the db variable also and the true return indicates
54 unsigned int db = 0;
55 unsigned long size = sizeof(db);
58 status = efi.get_variable(L"MokIgnoreDB", &guid, NULL, &size, &db);
70 void *db;
81 db = kmalloc(lsize, GFP_KERNEL);
82 if (!db)
85 *status = efi.get_variable(name, guid, NULL, &lsize, db);
87 kfree(db);
88 pr_err("Error reading db var: 0x%lx\n", *status);
93 return db;
164 void *db = NULL, *dbx = NULL, *mokx = NULL;
179 /* Get db and dbx. They might not exist, so it isn't an error
183 db = get_cert_list(L"db", &secure_var, &dbsize, &status);
184 if (!db) {
186 pr_debug("MODSIGN: db variable wasn't found\n");
188 pr_err("MODSIGN: Couldn't get UEFI db list\n");
190 rc = parse_efi_signature_list("UEFI:db",
191 db, dbsize, get_handler_for_db);
193 pr_err("Couldn't parse db signatures: %d\n",
195 kfree(db);