mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
hw/uefi: add var-service-pkcs7-stub.c
pkcs7 stub which is used in case gnutls is not available. It throws EFI_WRITE_PROTECTED errors unconditionally, so all authenticated variables are readonly for the guest. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-13-kraxel@redhat.com>
This commit is contained in:
parent
3e33af2cb3
commit
4ec89b00d5
1 changed files with 16 additions and 0 deletions
16
hw/uefi/var-service-pkcs7-stub.c
Normal file
16
hw/uefi/var-service-pkcs7-stub.c
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
*
|
||||||
|
* uefi vars device - pkcs7 stubs
|
||||||
|
*/
|
||||||
|
#include "qemu/osdep.h"
|
||||||
|
#include "system/dma.h"
|
||||||
|
|
||||||
|
#include "hw/uefi/var-service.h"
|
||||||
|
|
||||||
|
efi_status uefi_vars_check_pkcs7_2(uefi_variable *siglist,
|
||||||
|
void **digest, uint32_t *digest_size,
|
||||||
|
mm_variable_access *va, void *data)
|
||||||
|
{
|
||||||
|
return EFI_WRITE_PROTECTED;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue