oscap-im(8)

πŸ’– oscap-im πŸ’–

okay bestie, so this is a page from the System Administration Utilities manual β€” it's oscap-im, section 8, and honestly? she's a little icon. πŸŽ€


✨ NAME ✨

oscap-im β€” the tool for building hardened bootable container images πŸ¦‹


🌸 DESCRIPTION 🌸

okay so oscap-im is a convenience script, right, and her whole entire job is making it easier to build hardened bootable container images. no cap. πŸ’…

the vibe is very specific though, bestie, listen: this tool is designed to be used during the build of the bootable container image. so you literally include oscap-im in your Containerfile β€” the one you're using to build your bootable container image β€” and she handles the rest. what she does is run the oscap tool on a given container image. that's it, that's the whole thing. 🌈

🚨 IMPORTANT, don't skip this: the oscap-im tool can't be used anywhere else than in a Containerfile. literally nowhere else. she is a Containerfile girlie and she does not leave the house. πŸ™ˆ

⭐ USAGE ⭐

oscap-im [OPTION...] DATASTREAM_FILE

the way she works? usage of the tool mimics the usage and options of the oscap(8) tool. so if you already know oscap, you already know her. iykyk. 😌✨


πŸ‘‘ OPTIONS πŸ‘‘

here's the whole roster, bestie β€” every single one, no skips:

  • --profile PROFILE_ID β€” the ID of the profile that's gonna be evaluated. that's the one. πŸŽ€
  • --tailoring-file TAILORING_FILE β€” use this given file for XCCDF tailoring. then you pick which profile from the tailoring file to actually apply using --profile. πŸ’– and listen, important detail: if you specify both --tailoring-file and --tailoring-id, then --tailoring-file takes priority. she said me first. πŸ’…
  • --tailoring-id COMPONENT_REF_ID β€” use the tailoring component inside the input source data stream for XCCDF tailoring. the tailoring component has to be specified by its Ref-ID, which is the value of the component-ref/@id attribute in the input source data stream. then you select the profile from that tailoring component to apply using --profile. and again, fr fr: 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. arf, slay. πŸ”₯
  • --report FILE β€” writes the HTML report into FILE. cute and readable. πŸ’œ

πŸ› REPORTING BUGS πŸ›

found a bug? don't suffer in silence, bestie. please report bugs using https://github.com/OpenSCAP/openscap/issues β€” the maintainers wanna hear it. 🫢


πŸ’« AUTHORS πŸ’«

  • Jan ČernΓ½ <jcerny@redhat.com> β€” the author herself. legend behavior. πŸ‘‘

and that's the whole page, babes. this beauty came to you from Red Hat, Inc., dated January 2025, and she's oscap-im(8). go build something hardened and bootable, you absolute main character. πŸ¦‹βœ¨πŸ’–