Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 598523 - luksOpen mishandles newline for keyfile input on stdin
luksOpen mishandles newline for keyfile input on stdin
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cryptsetup-luks (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Milan Broz
Release Test Team
Depends On:
Blocks: 569949
  Show dependency treegraph
Reported: 2010-06-01 10:53 EDT by Milan Broz
Modified: 2013-02-28 23:09 EST (History)
8 users (show)

See Also:
Fixed In Version: cryptsetup-luks-1.1.2-1.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-11-10 15:04:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Milan Broz 2010-06-01 10:53:17 EDT
Description of problem:

There is a regression (introduced in 1.1.1 version) in handling
key files containing new line characters (affects only files read from
standard input).

Fixed upstream in cryptsetup 1.1.2.

Bug is in cryptsetup-luks-1.1.1-1.el6
Comment 1 RHEL Product and Program Management 2010-06-01 10:55:51 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
Comment 2 Milan Broz 2010-06-07 04:25:19 EDT
Fixed in cryptsetup-luks-1.1.2-1.el6.
Comment 4 Pavel Holica 2010-07-09 04:28:36 EDT
What is purpose of this fix please? I've tried several methods of key input and observed same behaviour on cryptsetup-luks-1.1.1-1.el6 and cryptsetup-luks-1.1.2-1.el6
Comment 5 Milan Broz 2010-07-09 05:06:40 EDT

this part of internal upstream test should cover the problem
prepare "[14] format/open - passphrase on stdin & new line"
Comment 6 Pavel Holica 2010-07-09 06:43:49 EDT
Thanks, I was able to reproduce and verify the fix with this test.

Verified on RHEL6.0-20100707.4 x86_64 Sever with cryptsetup-luks-1.1.2-1.el6
Comment 7 releng-rhel@redhat.com 2010-11-10 15:04:59 EST
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

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