Bug 1607382
| Summary: | sysctl probe - do not print errors in case hugetables are not enabled in kernel | |||
|---|---|---|---|---|
| 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: | low | Docs Contact: | ||
| Priority: | low | |||
| Version: | 7.6 | CC: | jcerny, matyc, mhaicman, mmarhefk, openscap-maint | |
| Target Milestone: | alpha | |||
| Target Release: | --- | |||
| Hardware: | ppc64le | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1642995 (view as bug list) | Environment: | ||
| Last Closed: | 2019-03-12 14:32:48 UTC | Type: | Bug | |
| 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: | ||||
| Bug Blocks: | 1642995 | |||
|
Description
Matus Marhefka
2018-07-23 12:13:57 UTC
I'm sorry, but I don't understand why is this considered a bug. The OVAL definition used in this test, tests/probes/sysctl/test_sysctl_probe_all.oval.xml, specifies the sysctl name as regular expression '.*'. That means it should match every parameter. The name is defined in OVAL specification as: The name element specifies the name(s) of the kernel parameter(s) that should be collected from the local system. Therefore I think the probe should collect all the kernel parameters, including the deprecated ones. Moreover the way it works is that it basically reads recursively all the files under /proc/sys directory. Do you suggest skipping the deprecated options? Do you know how can a probe obtain an information about deprecation of kernel options? I reported this because tests/probes/sysctl/test_sysctl_probe_all.sh test case reported fail as sysctl probe (and dmesg) reported errors. As you suggested it looks like the warning about deprecated parameter is okay as probe and test are set to read all the kernel parameters. The only source I was able to find about deprecated kernel parameters was in the section "DEPRECATED PARAMETERS" in the sysctl(8) man page. There is one more issue reported by the sysctl probe about "Operation not supported" when reading files in /proc/sys/vm/. This does not happen on other architectures, only on ppc64le. Do you think it might be some issue in our probe or rather some ppc64le specific problem with access rights on sysfs filesystem? It looks like the ppc64 and ppc64le machines which were used for the testing do not have hugetables enabled, check using: # grep HUGETLB /boot/config-$(uname -r) sysctl also did not list these parameters: vm.nr_hugepages vm.nr_hugepages_mempolicy vm.nr_overcommit_hugepages IMO, we should not list these parameters too if we get "Operation not supported" when reading them. This issue was not selected to be included in Red Hat Enterprise Linux 7.7 because it is seen either as low or moderate impact to a small number of use-cases. The next release will be in Maintenance Support 1 Phase, which means that qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available. We will now close this issue, but if you believe that it qualifies for the Maintenance Support 1 Phase, please re-open; otherwise, we recommend moving the request to Red Hat Enterprise Linux 8 if applicable. |