[Bug 1257305] Re: Wrong efivars magic in sbkeysync

Launchpad Bug Tracker 1257305 at bugs.launchpad.net
Tue Dec 3 14:57:51 UTC 2013


** Branch linked:
lp:~jibel/ubuntu/trusty/sbsigntool/lp1257305_add_corrected_efivars_magic

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sbsigntool in Ubuntu.
https://bugs.launchpad.net/bugs/1257305

Title:
  Wrong efivars magic in sbkeysync

Status in “sbsigntool” package in Ubuntu:
  Triaged

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1257305/+subscriptions



More information about the foundations-bugs mailing list