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

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