Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619048 - sys-fs/cryptsetup-1.7.4: do not use hash in plain mode with keyfile specified
Summary: sys-fs/cryptsetup-1.7.4: do not use hash in plain mode with keyfile specified
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low trivial (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-20 15:04 UTC by Toralf Förster
Modified: 2017-09-13 13:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-05-20 15:04:26 UTC
get this at a current hardened system in rc.log:


 * Setting up dm-crypt mappings ...
 *   crypt-swap using: -c aes -h sha1 -d /dev/urandom create crypt-swap /dev/sda2 ...
WARNING: The --hash parameter is being ignored in plain mode with keyfile specified.
 [ ok ]



with these settings :

# grep -v -e '#' -e '^$' /etc/conf.d/dmcrypt 
swap=crypt-swap
source='/dev/sda2'
Comment 1 Toralf Förster gentoo-dev 2017-09-13 13:04:38 UTC
From upstream (https://gitlab.com/cryptsetup/cryptsetup/issues/343#note_40201575O) :

"The warning is needed - the keyfile is in plain mode used directly (without hashing) for backward compatible reasons."

I do wonder if the default are fine here in Gentoo -or- if they should change ?