Project

openscap

0.01
No release in over a year
A FFI wrapper around the OpenSCAP library. Currently it provides only subset of libopenscap functionality.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.16.2
 Project Readme

ruby-OpenSCAP icon

Description

An FFI wrapper around the OpenSCAP library.

Features/problems

Current version supports minimal set of functions needed to build own scanner. This gem is self documented by its test suite.

Sample Scanner Implementation

require 'openscap'
s = OpenSCAP::Xccdf::Session.new("ssg-fedora-ds.xml")
s.load
s.profile = "xccdf_org.ssgproject.content_profile_common"
s.evaluate
s.export_results(:rds_file => "results.rds.xml")
s.destroy

Development Requirements

On Fedora, commands are

dnf install openscap
bundle install

Test Requirements

On Fedora, more packages are necessary, but rubocop can be of the latest version

dnf install bzip2

Tests are then performed using script

./runtest.sh