dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0344-verifiers-PowerPC-fallout-cleanup.patch

3efed6
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3efed6
From: Daniel Kiper <daniel.kiper@oracle.com>
3efed6
Date: Thu, 14 Mar 2019 19:45:17 +0100
3efed6
Subject: [PATCH] verifiers: PowerPC fallout cleanup
3efed6
3efed6
PowerPC fallout cleanup after commit 4d4a8c96e (verifiers: Add possibility
3efed6
to verify kernel and modules command lines) and ca0a4f689 (verifiers: File
3efed6
type for fine-grained signature-verification controlling).
3efed6
3efed6
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
3efed6
Reviewed-by: Ross Philipson <ross.philipson@oracle.com>
3efed6
---
3efed6
 grub-core/loader/powerpc/ieee1275/linux.c | 4 ++--
3efed6
 1 file changed, 2 insertions(+), 2 deletions(-)
3efed6
3efed6
diff --git a/grub-core/loader/powerpc/ieee1275/linux.c b/grub-core/loader/powerpc/ieee1275/linux.c
3efed6
index c114e7df4fb..818b2a86d1a 100644
3efed6
--- a/grub-core/loader/powerpc/ieee1275/linux.c
3efed6
+++ b/grub-core/loader/powerpc/ieee1275/linux.c
3efed6
@@ -270,7 +270,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
3efed6
       goto out;
3efed6
     }
3efed6
 
3efed6
-  elf = grub_elf_open (argv[0]);
3efed6
+  elf = grub_elf_open (argv[0], GRUB_FILE_TYPE_LINUX_KERNEL);
3efed6
   if (! elf)
3efed6
     goto out;
3efed6
 
3efed6
@@ -303,7 +303,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
3efed6
   /* Create kernel command line.  */
3efed6
   grub_memcpy (linux_args, LINUX_IMAGE, sizeof (LINUX_IMAGE));
3efed6
   if (grub_create_loader_cmdline (argc, argv, linux_args + sizeof (LINUX_IMAGE) - 1,
3efed6
-				  size))
3efed6
+				  size, GRUB_VERIFY_KERNEL_CMDLINE))
3efed6
     goto out;
3efed6
 
3efed6
 out: