oscap-chroot(8)

πŸ“¦
version 1.4.6 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so listen β€” oscap-chroot is the tool for offline SCAP evaluation of filesystems mounted at arbitrary paths. that's the whole vibe. no cap. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, here's the tea: oscap-chroot runs the oscap tool on it inside a filesystem that's mounted at whatever path you hand it. that's literally it. the way it just… does that. 😌

and the usage of this tool mimics the usage and options of the oscap(8) tool, so if you already know that one, you're already slaying. iykyk. πŸ’…


🌸 USAGE 🌸

✨ Evaluation of XCCDF content ✨

$ oscap-chroot CHROOT_PATH xccdf eval [options] INPUT_CONTENT

supported oscap xccdf eval options are, and no we are NOT skipping any of them, periodt:

  --profile
  --tailoring-file
  --tailoring-id
  --cpe (external OVAL dependencies are not supported yet!)
  --oval-results
  --check-engine-results
  --results
  --results-arf
  --report
  --skip-validation
  --fetch-remote-resources
  --local-files
  --progress
  --datastream-id
  --xccdf-id
  --benchmark-id
heads up though: for --cpe, external OVAL dependencies are not supported yet! so don't come for me when that one doesn't do the thing. 🫢

πŸŽ€ Evaluation of OVAL content πŸŽ€

$ oscap-chroot image CHROOT_PATH oval eval [options] INPUT_CONTENT

supported oscap oval eval options are, again, the full lineup:

  --id
  --variables
  --directives
  --results
  --report
  --skip-validation
  --datastream-id
  --oval-id

🌈 Collection of OVAL System Characteristic 🌈

$ oscap-chroot CHROOT_PATH oval collect [options] INPUT_CONTENT

supported oscap oval collect options are β€” yes, all of them, we're thorough like that:

  --id
  --syschar
  --variables
  --skip-validation

πŸ‘‘ REPORTING BUGS πŸ‘‘

found something cursed? don't suffer in silence bestie. please report bugs using https://github.com/OpenSCAP/openscap/issues β€” the maintainers will literally thank you for it. πŸ›βœ¨


🫢 AUTHORS 🫢

Martin Preisler <mpreisle@redhat.com> β€” an absolute icon, no notes. πŸ’–


and that's a wrap, bestie! this little masterpiece came to you from Red Hat, Inc., dated February 2016, and it's the oscap-chroot(8) page. go forth and evaluate some filesystems offline. slay. πŸ’…πŸŒΈβœ¨