Skip to content

Add LUKS guide for FIPS linuxkm - #12082

Open
ColtonWilley wants to merge 1 commit into
wolfSSL:masterfrom
ColtonWilley:linuxkm-luks-guide
Open

ColtonWilley wants to merge 1 commit into
wolfSSL:masterfrom
ColtonWilley:linuxkm-luks-guide

Conversation

@ColtonWilley

@ColtonWilley ColtonWilley commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Per-distro guides (Debian 13, RHEL 9) and boot-guard files for using FIPS libwolfssl.ko as the LUKS/dm-crypt cipher provider. Tested on Debian 13 and Rocky 9.8 with Secure Boot.

Copilot AI balanced review requested due to automatic review settings November 10, 2026 20:17
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

zephyr-frdm_rw612

  • FLASH: datas +16 B, log_const_area -8 B, rodata +20 B, text +10,016 B (+3.6%, 292,508 B / 67,108,864 B, total: 0% used)
  • RAM: bss +49 B, datas +16 B (+0.1%, 58,423 B / 983,040 B, total: 6% used)

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The guard remains active after its first run, so subsequent unlocks can skip provider revalidation and silently fall back to kernel AES if libwolfssl has been unloaded.

1 open issue
What changed in this PR

Adds a LUKS integration guide and boot guards for using the FIPS wolfSSL kernel module with encrypted data and root volumes on Debian 13 and RHEL/Rocky 9.

Changes:

  • Documents module builds, Secure Boot signing, volume setup, recovery, and kernel updates.
  • Adds provider checks and systemd/initramfs integration.
  • Links the guide and includes the new files in source distributions.
File Description
linuxkm/​README.md Links to the LUKS integration guide.
linuxkm/​luks/​wolfcrypt-luks-guard.service Runs the guard before cryptsetup startup.
linuxkm/​luks/​wolfcrypt-luks-guard Checks configured algorithms for wolfCrypt driver priority.
linuxkm/​luks/​systemd-cryptsetup.conf Makes cryptsetup units depend on the guard.
linuxkm/​luks/​README.md Documents installation and operational procedures.
linuxkm/​luks/​initramfs-premount Runs the guard during Debian early boot.
linuxkm/​luks/​initramfs-hook Includes guard dependencies in Debian initramfs images.
linuxkm/​luks/​dracut.conf Includes the module and guard files in dracut images.
linuxkm/​include.am Adds the guide and supporting files to EXTRA_DIST.

Review effort: Balanced

Comment on lines +2 to +3
Requires=wolfcrypt-luks-guard.service
After=wolfcrypt-luks-guard.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants