Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834920 - sys-fs/cryptsetup: add fips support
Summary: sys-fs/cryptsetup: add fips support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-10 14:37 UTC by Mathieu Tortuyaux
Modified: 2022-03-21 23:48 UTC (History)
1 user (show)

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 Mathieu Tortuyaux 2022-03-10 14:37:41 UTC
Hi,

Based on the Cryptsetup's FAQ [^1], LUKS is FIPS compliant:

> From a technical point-of-view, LUKS with the right parameters would be FIPS-140-2 compliant, but in order to make it certified, somebody has to pay real money for that.

The parameter is exposed in `configure.ac`:
```
AS_HELP_STRING([--enable-fips], [enable FIPS mode restrictions]))
```

I think we could add a USE flag to sys-fs/cryptsetup to enable or not `fips` and by default it should be disabled.


[^1]: https://gitlab.com/cryptsetup/cryptsetup/-/wikis/FrequentlyAskedQuestions
[^2]: https://gitlab.com/cryptsetup/cryptsetup/-/blob/maste/configure.ac#L163-179
Comment 1 Larry the Git Cow gentoo-dev 2022-03-21 23:48:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ec57a0b4c6249bafb46fb7041430cc9b53e2372

commit 5ec57a0b4c6249bafb46fb7041430cc9b53e2372
Author:     Mathieu Tortuyaux <mtortuyaux@microsoft.com>
AuthorDate: 2022-03-10 14:27:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-03-21 23:44:41 +0000

    sys-fs/cryptsetup: add fips useflag
    
    Closes: https://bugs.gentoo.org/834920
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
    Closes: https://github.com/gentoo/gentoo/pull/24479
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/cryptsetup/cryptsetup-2.4.3-r1.ebuild | 5 +++--
 sys-fs/cryptsetup/metadata.xml               | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)