Wrong efivars magic in sbkeysync

Bug #1257305 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sbsigntool (Ubuntu)
Fix Released
High
Unassigned

Bug Description

efivars magic is incorrect in sbkeysync

commit 951ee95a301674c046f55330cd7460e1314deff2 upstream fixes this:

diff --git a/src/sbkeysync.c b/src/sbkeysync.c
index 011004a..a63d3b8 100644
--- a/src/sbkeysync.c
+++ b/src/sbkeysync.c
@@ -56,7 +56,8 @@
 #include "efivars.h"

 #define EFIVARS_MOUNTPOINT "/sys/firmware/efi/efivars"
-#define EFIVARS_FSTYPE 0x6165676C
+#define PSTORE_FSTYPE 0x6165676C
+#define EFIVARS_FSTYPE 0xde5e81e4

 #define EFI_IMAGE_SECURITY_DATABASE_GUID \
         { 0xd719b2cb, 0x3d3a, 0x4596, \
@@ -533,7 +534,7 @@ static int check_efivars_mount(const char *mountpoint)
         if (rc)
                 return -1;

- if (statbuf.f_type != EFIVARS_FSTYPE)
+ if (statbuf.f_type != EFIVARS_FSTYPE && statbuf.f_type != PSTORE_FSTYPE)
                 return -1;

         return 0;

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: sbsigntool 0.6-0ubuntu5
ProcVersionSignature: Ubuntu 3.12.0-4.12-generic 3.12.1
Uname: Linux 3.12.0-4-generic x86_64
ApportVersion: 2.12.7-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Dec 3 15:28:06 2013
SourcePackage: sbsigntool
UpgradeStatus: Upgraded to trusty on 2012-01-31 (671 days ago)

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in sbsigntool (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sbsigntool - 0.6-0ubuntu6

---------------
sbsigntool (0.6-0ubuntu6) trusty; urgency=low

  * debian/patches/add_corrected_efivars_magic.patch: Cherry-picked upstream
    fix to add corrected efivars magic (LP: #1257305)
 -- Jean-Baptiste Lallement <email address hidden> Tue, 03 Dec 2013 15:50:45 +0100

Changed in sbsigntool (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.