FIPS-MODE-SETUP(8)
πΈ FIPS-MODE-SETUP π
okay so bestie, welcome to fips-mode-setup β that's section 8 of the manual, if you're keeping track π β the little tool that checks or enables the system FIPS mode. yes, that FIPS mode. we're doing crypto compliance today and honestly? it's giving responsible queen energy π
β¨ SYNOPSIS β¨
fips-mode-setup [COMMAND]
π¦ DESCRIPTION π¦
fips-mode-setup(8) is literally your remote control for the system FIPS mode β checking it, controlling it, the whole vibe check π
When you enable the system FIPS mode, the command finishes installing the FIPS modules if that's needed, and it does that by calling fips-finish-install. then it switches the system crypto policy over to FIPS β unless the policy was already set to FIPS plus subpolicies layered on top, in which case it just keeps the subpolicies that are currently active (no need to redo the whole thing, we respect a queen who's already set up π
).
after that, it goes and edits the boot loader configuration to add fips=1 and boot=<boot-device> options to the kernel command line. slay.
When you disable the system FIPS mode, the system crypto policy gets switched to DEFAULT and the kernel command line option fips=0 is set. that's it, that's the whole mood π
π¨ real talk on transactional systems: enabling the system in FIPS mode with the fips-mode-setup tool is not implemented on these. no cap. it's just not a thing there. if you wanna enable FIPS mode on one of these systems, you have to do it manually with these steps:
- install the FIPS pattern on a running system:
# transactional-update pkg install -t pattern microos-fips
- reboot your system.
- add the kernel command line parameter
fips=1to the boot loader configuration. to do so, edit the file/etc/default/gruband addfips=1to theGRUB_CMDLINE_LINUX_DEFAULTvariable. - after logging in to the system, run:
# transactional-update grub.cfg
- reboot your system.
see? not scary, just a little more homework πβ¨
π OPTIONS π
the following options are available in the fips-mode-setup tool. let's go through them bestie:
--enableβ enables the system FIPS mode. the main character option, honestly π--disableβ undo some of the FIPS-enablement steps. but listen π: module installation cannot be undone without reformatting and overwriting, at least once, the platform's hard drive or other permanent storage media. this option is not meant to be used in production, is not supported, and is implemented for testing purposes only. so like... be careful, fr fr π--checkβ checks for inconsistently enabled FIPS mode. it exits successfully (0) for both consistently-enabled FIPS mode and consistently-disabled FIPS mode, and returns error code (1) if inconsistencies are detected. so0= we're consistent,1= something's messy π. for checking whether FIPS mode is enabled, see--is-enabledbelow.--is-enabledβ checks the system FIPS mode status and returns a failure error code if it's disabled (2) or inconsistent (1). two different flavors of nope, iykyk π«Ά--no-bootcfgβ the tool will not reconfigure the boot loader, and instead will print out the options that need to be added to the kernel command line. lowkey convenient β¨. exception: it still attempts executingzipl(8)on s390x, because otherwise the system might become unbootable. yeah, that's a "please don't break my boot" situation, so it stays π₯
π FILES π
/proc/sys/crypto/fips_enabledβ the kernel FIPS mode flag. tiny file, big responsibilities πΈ
π SEE ALSO π
update-crypto-policies(8), fips-finish-install(8)
go read those too, bestie, they're part of the lore π
β AUTHOR β
written by TomΓ‘Ε‘ MrΓ‘z. absolute icon, we stan π«Ά
okay that's the whole page!! π this was fips-mode-setup, from the FIPS-MODE-SETUP(8) manual, dated 02/07/2025. go forth and be FIPS-compliant, bestie ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: crypto-policies-scripts 20250714.cd6043a-160000.3.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms