oscap-im(8) System Administration Utilities oscap-im(8)

# [NAME](#NAME)

oscap-im - Tool for building hardened bootable container images

# [DESCRIPTION](#DESCRIPTION)

The oscap-im tool is a convenience script that makes building hardened bootable container images easier. This tool is designed to be used during the build of the bootable container image. Include oscap-im in your Containerfile that will be used to build your bootable container image. The oscap-im runs oscap tool on a given container image.

The oscap-im tool can't be used anywhere else than in a Containerfile.

# [USAGE](#USAGE)

oscap-im \[OPTION...] DATASTREAM\_FILE

Usage of the tool mimics usage and options of [oscap(8)](/man/os/openscap/oscap.8) tool.

# [OPTIONS](#OPTIONS)

[**--profile PROFILE\_ID**](#profile)

ID of the profile to be evaluated.

[**--tailoring-file TAILORING\_FILE**](#tailoring_file)

Use given file for XCCDF tailoring. Select profile from tailoring file to apply using --profile. If both --tailoring-file and --tailoring-id are specified, --tailoring-file takes priority.

[**--tailoring-id COMPONENT\_REF\_ID**](#tailoring_id)

Use tailoring component in input source data stream for XCCDF tailoring. The tailoring component must be specified by its Ref-ID (value of component-ref/@id attribute in input source data stream). Select profile from tailoring component to apply using --profile. If both --tailoring-file and --tailoring-id are specified, --tailoring-file takes priority.

[**--results-arf FILE**](#results_arf)

Writes results to a given FILE in Asset Reporting Format.

[**--report FILE**](#report)

Write HTML report into FILE.

# [REPORTING BUGS](#REPORTING_BUGS)

```
Please report bugs using https://github.com/OpenSCAP/openscap/issues
```

# [AUTHORS](#AUTHORS)

```
Jan Černý <jcerny@redhat.com>
```

January 2025 Red Hat, Inc.

---

Document: oscap-im(8) from openscap 1.4.5-r1 (Chainguard OS)
Source: https://github.com/OpenSCAP/openscap
