Bug 851185 - Missing *.hmac files in FIPS initramfs
Summary: Missing *.hmac files in FIPS initramfs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: dracut-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 717789 851504
TreeView+ depends on / blocked
 
Reported: 2012-08-23 12:45 UTC by Milan Broz
Modified: 2013-03-01 04:11 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
: 851504 (view as bug list)
Environment:
Last Closed: 2012-09-17 23:29:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Log from dracut -f -v --debug -a crypt (8.14 MB, text/plain)
2012-08-23 13:14 UTC, Milan Broz
no flags Details
Proposed workaround for dracut-install (2.78 KB, patch)
2012-08-23 17:58 UTC, Milan Broz
no flags Details | Diff
Proposed patch to make fipscheck really work in initramfs (1.21 KB, patch)
2012-08-23 17:59 UTC, Milan Broz
no flags Details | Diff

Description Milan Broz 2012-08-23 12:45:22 UTC
Description of problem:

Seems that dracut doesn not put FIPS *.hmac filer in initramfs, so fipscheck verification cannot succeed.

Version-Release number of selected component (if applicable):
dracut-023-2.fc18.x86_64

How reproducible:
Easy to test, just install crypt module dracut -f -a crypt and try to run cryptsetup in initramfs "cryptsetup status x" - it will fail with FIPS check failed.

Comment 1 Milan Broz 2012-08-23 12:51:32 UTC
Hm, this should be perhaps F17 bug only and related only to cryptsetup.

I'll post more info ASAP, seems my system is kind of broken now...

Comment 2 Milan Broz 2012-08-23 13:07:18 UTC
I think the problem is that hmac location changes (seems not for all packages though) to /lib/fipscheck:

# ls /lib64/fipscheck
cryptsetup.hmac  fipscheck.hmac  libcryptsetup.so.4.3.0.hmac  libcryptsetup.so.4.hmac  libfipscheck.so.1.1.0.hmac  libfipscheck.so.1.hmac  sshd.hmac  ssh.hmac

Comment 3 Milan Broz 2012-08-23 13:14:15 UTC
Created attachment 606558 [details]
Log from dracut -f -v --debug -a crypt

Comment 4 Milan Broz 2012-08-23 14:07:48 UTC
Hmmm. this change is 2 years old.. I wonder if cryptsetup is the first real user of fipscheck in initramfs? :)
https://fedorahosted.org/fipscheck/changeset/31ef85b2a86e5e696a5dfde4665cfe2c55bb3dae

Comment 5 Milan Broz 2012-08-23 17:58:05 UTC
Created attachment 606673 [details]
Proposed workaround for dracut-install

Proposed (ugly:-) workaround for dracut-install to handle fipscheckdir

Comment 6 Milan Broz 2012-08-23 17:59:20 UTC
Created attachment 606674 [details]
Proposed patch to make fipscheck really work in initramfs

Proposed patch to make fipscheck really work in initramfs.

Similar change was in RHEL6 but somehow disappeared on the way...

Comment 7 Fedora Update System 2012-09-10 14:16:24 UTC
dracut-023-39.git20120910.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/dracut-023-39.git20120910.fc18

Comment 8 Fedora Update System 2012-09-10 16:09:42 UTC
Package dracut-023-39.git20120910.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dracut-023-39.git20120910.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13731/dracut-023-39.git20120910.fc18
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-09-17 23:29:39 UTC
dracut-023-39.git20120910.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.