[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 11/21] hw/uefi: add var-service-pkcs7-stub.c
From: |
Gerd Hoffmann |
Subject: |
[PATCH v2 11/21] hw/uefi: add var-service-pkcs7-stub.c |
Date: |
Tue, 7 Jan 2025 16:33:38 +0100 |
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>
---
hw/uefi/var-service-pkcs7-stub.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 hw/uefi/var-service-pkcs7-stub.c
diff --git a/hw/uefi/var-service-pkcs7-stub.c b/hw/uefi/var-service-pkcs7-stub.c
new file mode 100644
index 000000000000..118cba446d4b
--- /dev/null
+++ b/hw/uefi/var-service-pkcs7-stub.c
@@ -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;
+}
--
2.47.1
- [PATCH v2 00/21] hw/uefi: add uefi variable service, Gerd Hoffmann, 2025/01/07
- [PATCH v2 01/21] hw/uefi: add include/hw/uefi/var-service-api.h, Gerd Hoffmann, 2025/01/07
- [PATCH v2 02/21] hw/uefi: add include/hw/uefi/var-service-edk2.h, Gerd Hoffmann, 2025/01/07
- [PATCH v2 03/21] hw/uefi: add include/hw/uefi/var-service.h, Gerd Hoffmann, 2025/01/07
- [PATCH v2 04/21] hw/uefi: add var-service-guid.c, Gerd Hoffmann, 2025/01/07
- [PATCH v2 05/21] hw/uefi: add var-service-utils.c, Gerd Hoffmann, 2025/01/07
- [PATCH v2 09/21] hw/uefi: add var-service-core.c, Gerd Hoffmann, 2025/01/07
- [PATCH v2 07/21] hw/uefi: add var-service-auth.c, Gerd Hoffmann, 2025/01/07
- [PATCH v2 06/21] hw/uefi: add var-service-vars.c, Gerd Hoffmann, 2025/01/07
- [PATCH v2 11/21] hw/uefi: add var-service-pkcs7-stub.c,
Gerd Hoffmann <=
- [PATCH v2 08/21] hw/uefi: add var-service-policy.c, Gerd Hoffmann, 2025/01/07
- [PATCH v2 10/21] hw/uefi: add var-service-pkcs7.c, Gerd Hoffmann, 2025/01/07
- [PATCH v2 12/21] hw/uefi: add var-service-siglist.c, Gerd Hoffmann, 2025/01/07
- [PATCH v2 14/21] hw/uefi: add trace-events, Gerd Hoffmann, 2025/01/07
- [PATCH v2 15/21] hw/uefi: add UEFI_VARS to Kconfig, Gerd Hoffmann, 2025/01/07
- [PATCH v2 13/21] hw/uefi: add var-service-json.c + qapi for NV vars., Gerd Hoffmann, 2025/01/07
- [PATCH v2 17/21] hw/uefi: add uefi-vars-sysbus device, Gerd Hoffmann, 2025/01/07
- [PATCH v2 16/21] hw/uefi: add to meson, Gerd Hoffmann, 2025/01/07