All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Kiper <daniel.kiper@oracle.com>
To: grub-devel@gnu.org
Cc: alexander.burmashev@oracle.com, eric.snowberg@oracle.com,
	leif.lindholm@linaro.org, phcoder@gmail.com,
	ross.philipson@oracle.com
Subject: [PATCH 2/5] verifiers: PowerPC fallout cleanup
Date: Tue, 19 Mar 2019 13:39:15 +0100	[thread overview]
Message-ID: <20190319123918.19267-3-daniel.kiper@oracle.com> (raw)
In-Reply-To: <20190319123918.19267-1-daniel.kiper@oracle.com>

PowerPC fallout cleanup after commit 4d4a8c96e (verifiers: Add possibility
to verify kernel and modules command lines) and ca0a4f689 (verifiers: File
type for fine-grained signature-verification controlling).

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
---
 grub-core/loader/powerpc/ieee1275/linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/grub-core/loader/powerpc/ieee1275/linux.c b/grub-core/loader/powerpc/ieee1275/linux.c
index c114e7df4..818b2a86d 100644
--- a/grub-core/loader/powerpc/ieee1275/linux.c
+++ b/grub-core/loader/powerpc/ieee1275/linux.c
@@ -270,7 +270,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
       goto out;
     }
 
-  elf = grub_elf_open (argv[0]);
+  elf = grub_elf_open (argv[0], GRUB_FILE_TYPE_LINUX_KERNEL);
   if (! elf)
     goto out;
 
@@ -303,7 +303,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
   /* Create kernel command line.  */
   grub_memcpy (linux_args, LINUX_IMAGE, sizeof (LINUX_IMAGE));
   if (grub_create_loader_cmdline (argc, argv, linux_args + sizeof (LINUX_IMAGE) - 1,
-				  size))
+				  size, GRUB_VERIFY_KERNEL_CMDLINE))
     goto out;
 
 out:
-- 
2.11.0



  parent reply	other threads:[~2019-03-19 12:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-19 12:39 [PATCH 0/5] Various GRUB build fixes Daniel Kiper
2019-03-19 12:39 ` [PATCH 1/5] verifiers: IA-64 fallout cleanup Daniel Kiper
2019-03-19 12:39 ` Daniel Kiper [this message]
2019-03-19 12:39 ` [PATCH 3/5] verifiers: MIPS " Daniel Kiper
2019-03-19 12:39 ` [PATCH 4/5] mips: Enable __clzsi2() Daniel Kiper
2019-03-19 12:39 ` [PATCH 5/5] sparc: Enable __clzsi2() and __clzdi2() Daniel Kiper
2019-03-19 15:16 ` [PATCH 0/5] Various GRUB build fixes Ross Philipson
2019-03-20 12:02   ` Daniel Kiper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190319123918.19267-3-daniel.kiper@oracle.com \
    --to=daniel.kiper@oracle.com \
    --cc=alexander.burmashev@oracle.com \
    --cc=eric.snowberg@oracle.com \
    --cc=grub-devel@gnu.org \
    --cc=leif.lindholm@linaro.org \
    --cc=phcoder@gmail.com \
    --cc=ross.philipson@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.