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

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