Bug 1829782
Summary: | openscap scanner runs out of memory when scanning systems with big number of files | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Matus Marhefka <mmarhefk> |
Component: | openscap | Assignee: | Jan Černý <jcerny> |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | high | Docs Contact: | Mirek Jahoda <mjahoda> |
Priority: | unspecified | ||
Version: | 7.8 | CC: | ekolesni, jafiala, jcerny, lmanasko, matyc, mhaicman, mjahoda, mpoole, qe-baseos-security |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Known Issue | |
Doc Text: |
.Scanning large numbers of files with OpenSCAP causes systems to run out of memory
The OpenSCAP scanner stores all collected results in the memory until the scan finishes. As a consequence, the system might run out of memory on systems with low RAM when scanning large numbers of files, for example, from the large package groups _Server with GUI_ and _Workstation_.
To work around this problem, use smaller package groups, for example, _Server_ and _Minimal Install_ on systems with limited RAM. If your scenario requires large package groups, you can test whether your system has sufficient memory in a virtual or staging environment. Alternatively, you can tailor the scanning profile to deselect rules that involve recursion over the entire `/` filesystem:
* `rpm_verify_hashes`
* `rpm_verify_permissions`
* `rpm_verify_ownership`
* `file_permissions_unauthorized_world_writable`
* `no_files_unowned_by_user`
* `dir_perms_world_writable_system_owned`
* `file_permissions_unauthorized_suid`
* `file_permissions_unauthorized_sgid`
* `file_permissions_ungroupowned`
* `dir_perms_world_writable_sticky_bits`
This prevents the OpenSCAP scanner from causing the system to run out of memory.
|
Story Points: | --- |
Clone Of: | 1824152 | Environment: | |
Last Closed: | 2020-05-12 09:25:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1824152 | ||
Bug Blocks: | 1816199 |
Description
Matus Marhefka
2020-04-30 10:55:43 UTC
Resolving this issue requires a large-scale rework of the OpenSCAP codebase, which is out of scope for the RHEL7 as it its now in Maintenanace Phase 2. It is not an urgent issue, ase the problem isn't likely to occur on typical scanned systems, which typically are servers without the GUI and a minimal package set. |