atomic scan <image>/<container>
atomic scan <image>/<container>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
atomic scan --all --verbose
# atomic scan --all --verbose
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
atomic scan rhel7/rhel
# atomic scan rhel7/rhel
docker run -it --rm -v /etc/localtime:/etc/localtime -v /run/atomic/2016-06-21-10-10-28-942890:/scanin -v /var/lib/atomic/openscap/2016-06-21-10-10-28-942890:/scanout:rw,Z -v /etc/oscapd:/etc/oscapd:ro rhel7/openscap oscapd-evaluate scan --no-standard-compliance --targets chroots-in-dir:///scanin --output /scanout
rhel7/rhel (sha256:bf203442)
The following issues were found:
RHSA-2016:1025: pcre security update (Important)
Severity: Important
RHSA URL: https://rhn.redhat.com/errata/RHSA-2016-1025.html
RHSA ID: RHSA-2016:1025-00
Associated CVEs:
CVE ID: CVE-2015-2328
CVE URL: https://access.redhat.com/security/cve/CVE-2015-2328
CVE ID: CVE-2015-3217
CVE URL: https://access.redhat.com/security/cve/CVE-2015-3217
CVE ID: CVE-2015-5073
CVE URL: https://access.redhat.com/security/cve/CVE-2015-5073
CVE ID: CVE-2015-8385
CVE URL: https://access.redhat.com/security/cve/CVE-2015-8385
CVE ID: CVE-2015-8386
CVE URL: https://access.redhat.com/security/cve/CVE-2015-8386
CVE ID: CVE-2015-8388
CVE URL: https://access.redhat.com/security/cve/CVE-2015-8388
CVE ID: CVE-2015-8391
CVE URL: https://access.redhat.com/security/cve/CVE-2015-8391
CVE ID: CVE-2016-3191
CVE URL: https://access.redhat.com/security/cve/CVE-2016-3191
Files associated with this scan are in /var/lib/atomic/openscap/2016-06-21-10-10-28-942890.
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
atomic scan --list
# atomic scan --list
Scanner: openscap *
Image Name: rhel7/openscap
Scan type: cve *
Description: Performs a CVE scan based on known CVE data
Scan type: standards_compliance
Description: Performs a standards scan
* denotes defaults
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
atomic scan --scan_type standards_compliance rhel7/rhel
# atomic scan --scan_type standards_compliance rhel7/rhel
docker run -it --rm -v /etc/localtime:/etc/localtime -v /run/atomic/2016-07-12-16-08-03-011887:/scanin -v /var/lib/atomic/openscap/2016-07-12-16-08-03-011887:/scanout:rw,Z -v /etc/oscapd:/etc/oscapd:ro rhel7/openscap oscapd-evaluate scan --targets chroots-in-dir:///scanin --output /scanout --no-cve-scan
rhel7 (sha256:5fbb7430)
The following issues were found:
Ensure Software Patches Installed
Severity: Important
XCCDF result: notchecked
Files associated with this scan are in /var/lib/atomic/openscap/2016-07-12-16-08-03-011887.
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
atomic install localhost:5000/custom_scanner
# atomic install localhost:5000/custom_scanner
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
atomic scan --scanner custom_scanner rhel7/rhel
# atomic scan --scanner custom_scanner rhel7/rhel
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
default_scanner: custom_scanner
default_scanner: custom_scanner
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
atomic scan --rootfs /tmp/chroot
# atomic scan --rootfs /tmp/chroot
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow