-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12825 from matusmarhefka/bootc_fips_mode
Update enable_fips_mode for bootable containers
- Loading branch information
Showing
4 changed files
with
133 additions
and
34 deletions.
There are no files selected for viewing
11 changes: 9 additions & 2 deletions
11
linux_os/guide/system/software/integrity/fips/enable_fips_mode/bash/shared.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 80 additions & 31 deletions
111
linux_os/guide/system/software/integrity/fips/enable_fips_mode/oval/shared.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<def-group> | ||
<definition class="inventory" id="installed_env_is_a_container" version="2"> | ||
<metadata> | ||
<title>Check if the scan target is a container</title> | ||
<affected family="unix"> | ||
<platform>multi_platform_all</platform> | ||
</affected> | ||
<description>Check for presence of files characterizing container filesystems.</description> | ||
<reference ref_id="cpe:/a:container" source="CPE" /> | ||
</metadata> | ||
<criteria operator="OR"> | ||
<criterion comment="Check if /.dockerenv exists" test_ref="test_installed_env_is_a_docker_container" /> | ||
<criterion comment="Check if /run/.containerenv exists" test_ref="test_installed_env_is_a_podman_container" /> | ||
</criteria> | ||
</definition> | ||
|
||
<unix:file_test check="all" check_existence="all_exist" comment="Check if /.dockerenv exists" id="test_installed_env_is_a_docker_container" version="1"> | ||
<unix:object object_ref="object_installed_env_is_a_docker_container" /> | ||
</unix:file_test> | ||
|
||
<unix:file_object comment="Check file /.dockerenv" id="object_installed_env_is_a_docker_container" version="1"> | ||
<unix:filepath datatype="string">/.dockerenv</unix:filepath> | ||
</unix:file_object> | ||
|
||
<unix:file_test check="all" check_existence="all_exist" comment="Check if /run/.containerenv exists" id="test_installed_env_is_a_podman_container" version="1"> | ||
<unix:object object_ref="object_installed_env_is_a_podman_container" /> | ||
</unix:file_test> | ||
|
||
<unix:file_object comment="Check file /run/.containerenv" id="object_installed_env_is_a_podman_container" version="1"> | ||
<unix:filepath datatype="string">/run/.containerenv</unix:filepath> | ||
</unix:file_object> | ||
</def-group> |