]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
verifiers: ARM Xen fallout cleanup
authorDaniel Kiper <daniel.kiper@oracle.com>
Thu, 6 Dec 2018 12:43:05 +0000 (13:43 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 7 Dec 2018 10:59:23 +0000 (11:59 +0100)
ARM Xen fallout cleanup after commit ca0a4f689 (verifiers: File type for
fine-grained signature-verification controlling).

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Ross Philipson <ross.philipson@oracle.com>
grub-core/loader/arm64/xen_boot.c
include/grub/file.h

index 33a855df4a6495def4265437c296b620fe51a495..a742868a423720170f3f7b249c8eb0a3aba66c62 100644 (file)
@@ -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));
   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;
 
index 9aae463557a629821d3b86329030a44cb89dfa43..cbbd294655b402240aef950a8f9111d6d0b4fc40 100644 (file)
@@ -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,