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

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