[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 10/10] fdt: Treat device tree file type like ACPI
From: |
Leif Lindholm |
Subject: |
Re: [PATCH v4 10/10] fdt: Treat device tree file type like ACPI |
Date: |
Mon, 26 Nov 2018 12:31:09 +0000 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Mon, Nov 26, 2018 at 12:38:15AM +0100, Alexander Graf wrote:
> We now have signature check logic in grub which allows us to treat
> files differently depending on their file type.
>
> Treat a loaded device tree like an overlayed ACPI table.
> Both describe hardware, so I suppose their threat level is the same.
>
> Signed-off-by: Alexander Graf <address@hidden>
Acked-by: Leif Lindholm <address@hidden>
>
> ---
>
> v3 -> v4:
>
> - Rebase onto current git master
> ---
> grub-core/commands/efi/shim_lock.c | 1 +
> include/grub/file.h | 4 ++--
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/grub-core/commands/efi/shim_lock.c
> b/grub-core/commands/efi/shim_lock.c
> index 01246b0fc..83568cb2b 100644
> --- a/grub-core/commands/efi/shim_lock.c
> +++ b/grub-core/commands/efi/shim_lock.c
> @@ -81,6 +81,7 @@ shim_lock_init (grub_file_t io, enum grub_file_type type,
> /* Fall through. */
>
> case GRUB_FILE_TYPE_ACPI_TABLE:
> + case GRUB_FILE_TYPE_DEVICE_TREE_IMAGE:
> *flags = GRUB_VERIFY_FLAGS_DEFER_AUTH;
>
> return GRUB_ERR_NONE;
> diff --git a/include/grub/file.h b/include/grub/file.h
> index 9aae46355..8c9bf5e5d 100644
> --- a/include/grub/file.h
> +++ b/include/grub/file.h
> @@ -69,8 +69,6 @@ enum grub_file_type
>
> GRUB_FILE_TYPE_EFI_CHAINLOADED_IMAGE,
>
> - GRUB_FILE_TYPE_DEVICE_TREE_IMAGE,
> -
> /* File holding signature. */
> GRUB_FILE_TYPE_SIGNATURE,
> /* File holding public key to verify signature once. */
> @@ -95,6 +93,8 @@ enum grub_file_type
> GRUB_FILE_TYPE_FILE_ID,
> /* File holding ACPI table. */
> GRUB_FILE_TYPE_ACPI_TABLE,
> + /* File holding Device Tree. */
> + GRUB_FILE_TYPE_DEVICE_TREE_IMAGE,
> /* File we intend show to user. */
> GRUB_FILE_TYPE_CAT,
> GRUB_FILE_TYPE_HEXCAT,
> --
> 2.12.3
>
- [PATCH v4 00/10] Add RISC-V support, Alexander Graf, 2018/11/25
- [PATCH v4 03/10] elf.h: Add RISC-V definitions, Alexander Graf, 2018/11/25
- [PATCH v4 02/10] PE: Add RISC-V definitions, Alexander Graf, 2018/11/25
- [PATCH v4 05/10] RISC-V: Add early startup code, Alexander Graf, 2018/11/25
- [PATCH v4 01/10] efi: Rename armxx to arch, Alexander Graf, 2018/11/25
- [PATCH v4 08/10] RISC-V: Add auxiliary files, Alexander Graf, 2018/11/25
- [PATCH v4 07/10] RISC-V: Add awareness for RISC-V reloations, Alexander Graf, 2018/11/25
- [PATCH v4 04/10] RISC-V: Add setjmp implementation, Alexander Graf, 2018/11/25
- [PATCH v4 06/10] RISC-V: Add Linux load logic, Alexander Graf, 2018/11/25
- [PATCH v4 10/10] fdt: Treat device tree file type like ACPI, Alexander Graf, 2018/11/25
- [PATCH v4 09/10] RISC-V: Add to build system, Alexander Graf, 2018/11/25