nalika / rpms / grub2

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