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