8c6b1ac71e
Also include some minor fixes for gcc 5.1.1 Signed-off-by: Peter Jones <pjones@redhat.com>
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From 2c2c5c720d79c54af39a5a4423f2d6a48d21bfda Mon Sep 17 00:00:00 2001
|
|
From: Vladimir Serbinenko <phcoder@gmail.com>
|
|
Date: Thu, 15 May 2014 14:36:48 +0200
|
|
Subject: [PATCH 081/506] * grub-core/commands/verify.c
|
|
(grub_pubkey_open): Trust procfs.
|
|
|
|
---
|
|
ChangeLog | 4 ++++
|
|
grub-core/commands/verify.c | 4 +++-
|
|
2 files changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/ChangeLog b/ChangeLog
|
|
index c32d4c6..6d2f8c6 100644
|
|
--- a/ChangeLog
|
|
+++ b/ChangeLog
|
|
@@ -1,5 +1,9 @@
|
|
2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
|
+ * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
|
|
+
|
|
+2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
|
|
+
|
|
* grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
|
|
check.
|
|
|
|
diff --git a/grub-core/commands/verify.c b/grub-core/commands/verify.c
|
|
index 6349ccf..525bdd1 100644
|
|
--- a/grub-core/commands/verify.c
|
|
+++ b/grub-core/commands/verify.c
|
|
@@ -835,7 +835,9 @@ grub_pubkey_open (grub_file_t io, const char *filename)
|
|
|
|
if (!sec)
|
|
return io;
|
|
- if (io->device->disk && io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID)
|
|
+ if (io->device->disk &&
|
|
+ (io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID
|
|
+ || io->device->disk->dev->id == GRUB_DISK_DEVICE_PROCFS_ID))
|
|
return io;
|
|
fsuf = grub_malloc (grub_strlen (filename) + sizeof (".sig"));
|
|
if (!fsuf)
|
|
--
|
|
2.4.3
|
|
|