Last active
February 9, 2021 15:52
-
-
Save erickeller/e1b1229d6f69d08ba760fad4a7222dc4 to your computer and use it in GitHub Desktop.
build and run oscap on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/OpenSCAP/openscap.git | |
cd openscap | |
sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev \ | |
libxml2-dev \ | |
libxslt-dev \ | |
libpcre3-dev \ | |
libgcrypt20-dev \ | |
libbz2-dev \ | |
swig \ | |
python-dev | |
./autogen.sh | |
./configure --prefix /usr --enable-util-oscap --enable-util-oscap-chroot --enable-util-oscap-docker --enable-util-oscap-ssh --enable-util-oscap-vm | |
make -j `nproc` && sudo make install | |
# Ubuntu xenial | |
wget https://people.canonical.com/~ubuntu-security/oval/com.ubuntu.xenial.cve.oval.xml -O /tmp/com.ubuntu.xenial.cve.oval.xml | |
oscap oval eval --results /tmp/results-xenial.xml --report /tmp/report-xenial.html com.ubuntu.xenial.cve.oval.xml | |
# Debian | |
wget https://www.debian.org/security/oval/oval-definitions-2017.xml -O /tmp/oval-definitions-2017.xml | |
oscap oval eval --results /tmp/results-debian.xml --report /tmp/report-debian.html /tmp/oval-definitions-2017.xml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment