You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CMakeLists.txt
+2-2
Original file line number
Diff line number
Diff line change
@@ -330,7 +330,7 @@ cmake_dependent_option(ENABLE_OSCAP_UTIL_AS_RPM "enable the scap-as-rpm utility,
330
330
cmake_dependent_option(ENABLE_OSCAP_UTIL_SSH "enables the oscap-ssh utility, this lets you scan remote machines over ssh"ON"NOT WIN32"OFF)
331
331
cmake_dependent_option(ENABLE_OSCAP_UTIL_VM "enables the oscap-vm utility, this lets you scan VMs and VM storage images"ON"NOT WIN32"OFF)
332
332
cmake_dependent_option(ENABLE_OSCAP_UTIL_PODMAN "enables the oscap-podman utility, this lets you scan Podman containers and container images"ON"NOT WIN32"OFF)
333
-
cmake_dependent_option(ENABLE_OSCAP_UTIL_BOOTC"enables the oscap-bootc utility, this lets you build hardened bootable container images"ON"NOT WIN32"OFF)
333
+
cmake_dependent_option(ENABLE_OSCAP_UTIL_IM"enables the oscap-im utility, this lets you build hardened bootable container images"ON"NOT WIN32"OFF)
334
334
cmake_dependent_option(ENABLE_OSCAP_UTIL_CHROOT "enables the oscap-chroot utility, this lets you scan entire chroots using offline scanning"ON"NOT WIN32"OFF)
335
335
option(ENABLE_OSCAP_UTIL_AUTOTAILOR "enables the autotailor utility that is able to perform command-line tailoring"TRUE)
336
336
option(ENABLE_OSCAP_REMEDIATE_SERVICE "enables the oscap-remediate service"FALSE)
Note that the `oscap-podman` command requires root privileges.
1842
1833
1843
-
=== Building hardened bootable container images using oscap-bootc
1834
+
=== Building hardened bootable container images using oscap-im
1844
1835
1845
-
The `oscap-bootc` tool is a convenience script that makes building hardened bootable container images easier.
1836
+
The `oscap-im` tool is a convenience script that makes building hardened bootable container images easier.
1846
1837
This tool is designed to be used during the build of the bootable container image.
1847
1838
1848
-
Include `oscap-bootc` in your `Containerfile` that will be used to build your bootable container image.
1849
-
The `Containerfile` first needs to install the `openscap-utils` package which ships the `oscap-bootc` tool.
1839
+
Include `oscap-im` in your `Containerfile` that will be used to build your bootable container image.
1840
+
The `Containerfile` first needs to install the `openscap-utils` package which ships the `oscap-im` tool.
1850
1841
1851
-
Also, SCAP content needs to be installed to the image before `oscap-bootc` will be run.
1842
+
Also, SCAP content needs to be installed to the image before `oscap-im` will be run.
1852
1843
Although any SCAP content can be consumed by the tool, the SCAP source data streams shipped in `scap-security-guide` are specially cared to be compatible with bootable containers.
1853
1844
1854
1845
Example `Containerfile`:
@@ -1858,7 +1849,7 @@ FROM quay.io/centos-bootc/centos-bootc:stream9
1858
1849
1859
1850
RUN dnf install -y openscap-utils scap-security-guide
1860
1851
1861
-
RUN oscap-bootc --profile stig /usr/share/xml/scap/ssg/content/ssg-cs9-ds.xml
1852
+
RUN oscap-im --profile stig /usr/share/xml/scap/ssg/content/ssg-cs9-ds.xml
1862
1853
----
1863
1854
1864
1855
Once you have your `Containerfile`, execute the image build:
@@ -1867,15 +1858,15 @@ Once you have your `Containerfile`, execute the image build:
1867
1858
podman build -t hardened_image .
1868
1859
----
1869
1860
1870
-
The `oscap-bootc` tool installs and removes all packages required by the selected profile to or from the image.
1861
+
The `oscap-im` tool installs and removes all packages required by the selected profile to or from the image.
1871
1862
Then, it runs a scan and remediation with the selected profile.
1872
1863
It doesn't use offline scanning.
1873
1864
The configuration files and other content in the image are modified by this process, depending on the used SCAP content.
1874
1865
1875
1866
The built bootable container image can be then deployed and booted.
1876
1867
After booting the image, the state of the resulting system will be in line with the selected security profile.
1877
1868
1878
-
The `oscap-bootc` tool can't be used anywhere else than in a `Containerfile`.
1869
+
The `oscap-im` tool can't be used anywhere else than in a `Containerfile`.
1879
1870
1880
1871
=== Scanning of Docker containers and images using oscap-docker
0 commit comments