Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522684 - sys-fs/cryptsetup testsuite does not handle missing kernel config options well
Summary: sys-fs/cryptsetup testsuite does not handle missing kernel config options well
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2014-09-13 03:28 UTC by Sven E.
Modified: 2016-01-10 16:29 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Sven E. 2014-09-13 03:28:12 UTC
When the kernel backend is used, the current tests do not meat the minimum requirements.

In particular: CONFIG_CRYPTO_SHA1/SHA256 is needed (for backend checks), CONFIG_CRYPTO_USER_API, CONFIG_CRYPTO_USER_API_HASH and CONFIG_CRYPTO_USER_API_SKCIPHER are needed for the kernel backend (skcipher just lately). For LUKS CONFIG_CRYPTO_HMAC is needed (for key derivation.

Reproducible: Always

Steps to Reproduce:
Actual Results:  
Necessary checks for kernel backend are currently omitted.

Expected Results:  
A more thoroughly set of tests to ensure requirements are met.
Comment 1 SpanKY gentoo-dev 2014-09-19 15:55:11 UTC
the unittests should just mark themselves as SKIP when the kernel features are unavailable
Comment 2 Martin Filo 2016-01-10 16:29:30 UTC
I can confirm that all cryptsetup versions which are in portage now, crashing without CONFIG_CRYPTO_USER_API_HASH enabled in kernel with message "Cannot initialize crypto backend". This has not been required in older versions.