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

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