---
name: "oscap-im"
section: "8"
platform: "linux"
package: "openscap"
version: "1.4.5-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/oscap-im"
---

# oscap-im(8)

Tool for building hardened bootable container images

## NAME

oscap-im - Tool for building hardened bootable container images

## 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

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

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

## OPTIONS

- **--profile PROFILE\_ID**

  ID of the profile to be evaluated.

- **--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**

  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**

  Writes results to a given FILE in Asset Reporting Format.

- **--report FILE**

  Write HTML report into FILE.

## REPORTING BUGS

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

## AUTHORS

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