Blame SOURCES/0082-grub-core-commands-verify.c-grub_pubkey_open-Trust-p.patch

a85e8e
From 34115409b23070d7f50ef990498af89d067d34e1 Mon Sep 17 00:00:00 2001
a85e8e
From: Vladimir Serbinenko <phcoder@gmail.com>
a85e8e
Date: Thu, 15 May 2014 14:36:48 +0200
a85e8e
Subject: [PATCH 082/260] * grub-core/commands/verify.c (grub_pubkey_open):
a85e8e
 Trust procfs.
a85e8e
a85e8e
---
a85e8e
 ChangeLog                   | 4 ++++
a85e8e
 grub-core/commands/verify.c | 4 +++-
a85e8e
 2 files changed, 7 insertions(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/ChangeLog b/ChangeLog
a85e8e
index d0896d89e..2a94ad979 100644
a85e8e
--- a/ChangeLog
a85e8e
+++ b/ChangeLog
a85e8e
@@ -1,5 +1,9 @@
a85e8e
 2014-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
a85e8e
 
a85e8e
+	* grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
a85e8e
+
a85e8e
+2014-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
a85e8e
+
a85e8e
 	* grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
a85e8e
 	check.
a85e8e
 
a85e8e
diff --git a/grub-core/commands/verify.c b/grub-core/commands/verify.c
a85e8e
index 6349ccfba..525bdd187 100644
a85e8e
--- a/grub-core/commands/verify.c
a85e8e
+++ b/grub-core/commands/verify.c
a85e8e
@@ -835,7 +835,9 @@ grub_pubkey_open (grub_file_t io, const char *filename)
a85e8e
 
a85e8e
   if (!sec)
a85e8e
     return io;
a85e8e
-  if (io->device->disk && io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID)
a85e8e
+  if (io->device->disk && 
a85e8e
+      (io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID
a85e8e
+       || io->device->disk->dev->id == GRUB_DISK_DEVICE_PROCFS_ID))
a85e8e
     return io;
a85e8e
   fsuf = grub_malloc (grub_strlen (filename) + sizeof (".sig"));
a85e8e
   if (!fsuf)
a85e8e
-- 
a85e8e
2.13.0
a85e8e