Openscap scanning Atomic Host
Does anyone know how to use openscap (or any scap tool) to scan the atomic host itself? I know how to scan the containers within the Atomic host, but how to scan the host? It won't let me install openscap and you can't scan remotely unless the bare minimum of openscap is installed. FYI, I've also tried SCAP workbench and SCC from IASE.
Responses
Hi Chris, I believe this is the path you've been down in this Red Hat document on this topic.
UPDATE I'm checking to see if it will allow scanning of the host.
UPDATE 2 apologies, I couldn't find the *scap means to scan atomic host.
Regards,
RJ
Chris, apologies, I can't immediately find anything, I'll dig some more. Perhaps someone else in the community might chime in here, hopefully,
Genuinely curious, what is the error that occurs if/when you attempt to install SCAP of any form on the host? I'm a command line guy, but would the GUI-scap scanner work if you were to install it on another system and ssh to it? I have not been down the path of Atomic Host, so I don't know if that's feasible, I suspect if you are posting here, it might not be. However, what error did your receive?
Regards,
RJ
Chris,
Forgive and indulge me with the answer to this question, have you tried "sudo -i " or making sure you're root? Kinda taking a wild stab here, maybe examine this https://unix.stackexchange.com/questions/125706/why-cant-i-install-packages-with-rpm-i-get-transaction-lock
Chris, update, see the posts by PixelDrift here in this discussion https://access.redhat.com/discussions/3248901
Hello,
you can use 'atomic scan' to do this:
$ sudo atomic scan --rootfs / --scan_type configuration_compliance --scanner_args profile=pci-dss
To perform this scan you need to have rhel7/openscap image installed. See https://access.redhat.com/containers/?tab=images#/registry.access.redhat.com/rhel7/openscap
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
