New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oscap-ssh - remote oval and xccdf evaluation #69

Merged
merged 21 commits into from Apr 30, 2015
Commits
Jump to file or symbol
Failed to load files and symbols.
+31 −3
Diff settings

Always

Just for now

Viewing a subset of changes. View all

Added basic support for `oval eval`, improved documentation

  • Loading branch information...
mpreisler committed Apr 9, 2015
commit e9a2f4a9f7734915c9832e162a36e8ace1cf7b44
View
@@ -28,16 +28,42 @@ which mktemp > /dev/null || die "Cannot find mktemp, please install coreutils."
function usage()
{
echo "oscap-ssh user@host 22 xccdf eval INPUT_CONTENT"
echo "oscap-ssh"
echo
echo "$ oscap-ssh user@host 22 xccdf eval INPUT_CONTENT"
echo
echo "Only source datastreams are supported as INPUT_CONTENT!"
echo
echo "supported oscap options are:"
echo "supported oscap xccdf eval options are:"
echo " --profile"
echo " --tailoring-file"
echo " --tailoring-id"
#echo " --cpe" # TODO
# --oval-results, --sce-results and --check-engine-results are not supported
# use --results-arf instead
echo " --results"
echo " --results-arf"
echo " --report"
echo " --tailoring-file"
echo " --skip-valid"
echo " --fetch-remote-resources"
echo " --progress"
echo " --datastream-id"
echo " --xccdf-id"
echo " --benchmark-id"
echo " --remediate"
echo
echo "$ oscap-ssh user@host 22 oval eval INPUT_CONTENT"
echo
echo "supported oscap oval eval options are:"
echo " --id"
#echo " --variables" # TODO
#echo " --directives" # TODO
echo " --results"
echo " --report"
echo " --skip-valid"
echo " --datastream-id"
echo " --oval-id"
echo " --probe-root (has to be remote probe root!)"
}
if [ $# -lt 2 ]; then
@@ -53,6 +79,8 @@ if [ "$3" == "info" ]; then
true
elif [ "$3 $4" == "xccdf eval" ]; then
true
elif [ "$3 $4" == "oval eval" ]; then
true
else
die "This script only support xccdf eval. Patches welcome to support oval eval."
fi
ProTip! Use n and p to navigate between commits in a pull request.