Bug 1005884

Summary: Signing grub using sbsigntools prints warnings
Product: Red Hat Enterprise Linux 6 Reporter: Ralf Spenneberg <ralf>
Component: grubAssignee: Jan Grulich <jgrulich>
Status: CLOSED NOTABUG QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: hendrik, pjones
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-20 21:26:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ralf Spenneberg 2013-09-09 15:10:12 UTC
Description of problem:
To use RHEL 6 in an UEFI Secure Boot environment I need to sign the grub binary.

Version-Release number of selected component (if applicable):
grub-0.97-81.el6.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Install the sbsigntools from source
2. Generate keys for signing
3. Sign the grub binary using 

sbsign --key signing.key --cert signing.pem.crt grub.efi

Actual results:
warning: gap in section table:
    .text   : 0x00000400 - 0x0001e200,
    .reloc  : 0x0001e209 - 0x0001e609,
warning: gap in section table:
    .reloc  : 0x0001e209 - 0x0001e609,
    .data   : 0x0001e600 - 0x00032c00,
gaps in the section table may result in different checksums
warning: data remaining[228864 vs 251274]: gaps between PE/COFF sections?


Expected results:
No warnings. 

Additional info:
Hashing the grub via the mokmanager of shim does not work. Maybe because of the gaps in the section tables.

Comment 2 RHEL Program Management 2013-10-14 02:19:20 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Peter Jones 2014-11-20 21:26:43 UTC
We don't support Secure Boot in any way in RHEL 6.  On releases where we do support Secure Boot, we don't provide sbsign or support using it for anything.

In any event, the problem you're seeing is with sbsign, not in grub.