dahaic / ruby-openscap

A FFI wrapper around the OpenSCAP library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ruby-openscap icon ruby-OpenSCAP

Description

A FFI wrapper around the OpenSCAP library.

Features/problems

Current version supports minimal set of functions needed to build own scanner. This module 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 you can install requirements by issuing

dnf install ruby-devel rubygem-ffi rubygem-rake rubygem-bundler openscap
gem install rubocop

About

A FFI wrapper around the OpenSCAP library

License:GNU General Public License v2.0


Languages

Language:Ruby 99.8%Language:Shell 0.2%