Closed matusmarhefka closed 2 weeks ago
This datastream diff is auto generated by the check Compare DS/Generate Diff
I think that these checks for packages and services should be replaced by assigning a CPE platform to the rule.
Code Climate has analyzed commit 40262a8f and detected 0 issues on this pull request.
The test coverage on the diff in this pull request is 100.0% (50% is the threshold).
This pull request will bring the total coverage in the repository to 60.9% (0.0% change).
View more on Code Climate.
The rules used
service_chronyd_enabled
orservice_ntpd_enabled
in their OVALs to not only check the services configuration but to also check if the services are enabled.This approach is unnecessary and it won't work in the bootable container build environment where systemd services don't run.
Therefore, we update OVALs of these rules and remove the mentioned service enabled checks and we rather use CPE platforms to make the rules applicable only in cases when
chrony
orntp
packages are installed. This shouldn't be a big change as ifchrony
orntp
packages are installed their service config files should exist and in casechronyd
orntpd
services are enabled later they will already run with the expected configuration.