Skip to content

Commit 80a48cb

Browse files
authored
Merge pull request #13840 from vojtapolasek/stab_fix_fips_crypto_imgbuilder
[Stabilization]: broaden applicability of rules wrt FIPS cryptopolicy
2 parents b76020d + 6145304 commit 80a48cb

11 files changed

Lines changed: 18 additions & 4 deletions

File tree

linux_os/guide/system/software/integrity/fips/enable_dracut_fips_module/rule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ocil: |-
4747
The output should look like this:
4848
<tt>add_dracutmodules+=" fips "</tt>
4949
50-
platform: not bootc
50+
platform: not bootc and system_with_kernel and not osbuild
5151

5252
warnings:
5353
- general: |-

linux_os/guide/system/software/integrity/fips/enable_fips_mode/rule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,5 @@ fixtext: |-
8383
The installer for the system must be booted with kernel parameter <tt>fips=1</tt>.
8484
8585
srg_requirement: '{{{ full_name }}} must implement NIST FIPS-validated cryptography for the following: to provision digital signatures, to generate cryptographic hashes, and to protect data requiring data-at-rest protections in accordance with applicable federal laws, Executive Orders, directives, policies, regulations, and standards.'
86+
87+
platform: system_with_kernel and not osbuild

linux_os/guide/system/software/integrity/fips/etc_system_fips_exists/rule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ warnings:
6969
party review by an accredited lab. While open source software is
7070
capable of meeting this, it does not meet FIPS-140 unless the vendor
7171
submits to this process.
72+
73+
platform: system_with_kernel and not osbuild

linux_os/guide/system/software/integrity/fips/fips_crypto_policy_symlinks/rule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ ocil: |-
5454
'/etc/crypto-policies/back-ends/openssl.config' -> '/usr/share/crypto-policies/FIPS/openssl.txt'
5555
'/etc/crypto-policies/back-ends/openssl_fips.config' -> '/usr/share/crypto-policies/FIPS/openssl_fips.txt'
5656
</pre>
57+
58+
platform: system_with_kernel and not osbuild

linux_os/guide/system/software/integrity/fips/group.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ description: |-
1515
<br /><br />
1616
See <b>{{{ weblink(link="http://csrc.nist.gov/publications/PubsFIPS.html") }}}</b> for more information.
1717
18-
platform: system_with_kernel and not osbuild

linux_os/guide/system/software/integrity/fips/grub2_enable_fips_mode/rule.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ rationale: |-
4343
4444
severity: high
4545

46-
platforms:
47-
- grub2
46+
platform: grub2 and system_with_kernel and not osbuild
4847

4948
identifiers:
5049
cce@rhel10: CCE-86191-4

linux_os/guide/system/software/integrity/fips/is_fips_mode_enabled/rule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ warnings:
5858
party review by an accredited lab. While open source software is
5959
capable of meeting this, it does not meet FIPS-140 unless the vendor
6060
submits to this process.
61+
62+
platform: system_with_kernel and not osbuild

linux_os/guide/system/software/integrity/fips/package_dracut-fips-aesni_installed/rule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ warnings:
5454
party review by an accredited lab. While open source software is
5555
capable of meeting this, it does not meet FIPS-140 unless the vendor
5656
submits to this process.
57+
58+
platform: system_with_kernel and not osbuild

linux_os/guide/system/software/integrity/fips/package_dracut-fips_installed/rule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ template:
5858
pkgname: dracut-fips
5959
backends:
6060
oval: "off"
61+
62+
platform: system_with_kernel and not osbuild

linux_os/guide/system/software/integrity/fips/sysctl_crypto_fips_enabled/rule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,5 @@ checktext: |-
8686
$ sudo fips-mode-setup --check
8787
FIPS mode is enabled.
8888
If FIPS mode is not enabled, this is a finding.
89+
90+
platform: system_with_kernel and not osbuild

0 commit comments

Comments
 (0)