Wrong efivars magic in sbkeysync

Bug #1257305 reported by Jean-Baptiste Lallement on 2013-12-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sbsigntool (Ubuntu)

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

         { 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

Jean-Baptiste Lallement (jibel) wrote :
Changed in sbsigntool (Ubuntu):
status: New → Triaged
importance: Undecided → High
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  Edit
Everyone can see this information.

Other bug subscribers