grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GRUB PATCH 2/2] verifiers: ARM Xen fallout cleanup


From: Ross Philipson
Subject: Re: [GRUB PATCH 2/2] verifiers: ARM Xen fallout cleanup
Date: Thu, 6 Dec 2018 10:39:27 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 12/06/2018 08:40 AM, Daniel Kiper wrote:
> ARM Xen fallout cleanup after commit ca0a4f689 (verifiers: File type for
> fine-grained signature-verification controlling).
> 
> Signed-off-by: Daniel Kiper <address@hidden>
> ---
>  grub-core/loader/arm64/xen_boot.c | 8 ++++----
>  include/grub/file.h               | 5 +++++
>  2 files changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/grub-core/loader/arm64/xen_boot.c 
> b/grub-core/loader/arm64/xen_boot.c
> index 33a855df4..a742868a4 100644
> --- a/grub-core/loader/arm64/xen_boot.c
> +++ b/grub-core/loader/arm64/xen_boot.c
> @@ -429,9 +429,9 @@ grub_cmd_xen_module (grub_command_t cmd 
> __attribute__((unused)),
>  
>    grub_dprintf ("xen_loader", "Init module and node info\n");
>  
> -  if (nounzip)
> -    grub_file_filter_disable_compression ();
> -  file = grub_file_open (argv[0]);
> +  file = grub_file_open (argv[0], GRUB_FILE_TYPE_XEN_MODULE
> +                      | (nounzip ? GRUB_FILE_TYPE_NO_DECOMPRESS
> +                         : GRUB_FILE_TYPE_NONE));

Same question, how did this compile if you were missing an argument? I
guess maybe you were not building xen bits in and you missed fixing this up?

>    if (!file)
>      goto fail;
>  
> @@ -463,7 +463,7 @@ grub_cmd_xen_hypervisor (grub_command_t cmd __attribute__ 
> ((unused)),
>        goto fail;
>      }
>  
> -  file = grub_file_open (argv[0]);
> +  file = grub_file_open (argv[0], GRUB_FILE_TYPE_XEN_HYPERVISOR);
>    if (!file)
>      goto fail;
>  
> diff --git a/include/grub/file.h b/include/grub/file.h
> index 9aae46355..cbbd29465 100644
> --- a/include/grub/file.h
> +++ b/include/grub/file.h
> @@ -42,6 +42,11 @@ enum grub_file_type
>      /* Multiboot module.  */
>      GRUB_FILE_TYPE_MULTIBOOT_MODULE,
>  
> +    /* Xen hypervisor - used on ARM only. */
> +    GRUB_FILE_TYPE_XEN_HYPERVISOR,
> +    /* Xen module - used on ARM only. */
> +    GRUB_FILE_TYPE_XEN_MODULE,
> +
>      GRUB_FILE_TYPE_BSD_KERNEL,
>      GRUB_FILE_TYPE_FREEBSD_ENV,
>      GRUB_FILE_TYPE_FREEBSD_MODULE,
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]