-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve rule file_permssions_crontab
This change solves problem of failing rule `file_permissions_crontab` when the `crontabs` RPM package isn't installed. This situation happens namely when builidng a CS9 bootable container image because the base image doesn't contain the crontabs RPM package. In profiles which contain rule `service_crond_enabled` we will install the `crontabs` package by installing the `cronie` package which provides that service and has `crontabs` as dependency. This will be achived by adding the rule `package_cron_installed` to these profiles. In profiles which don't contain rule `service_crond_enabled` but still contain `file_permssions_crontabs` we will include the new rule `package_crontabs_installed`. Notice the the `cronie` package will be installed as a result of rule `package_cron_installed` which installs either `cron` or `cronie` based on the product name. This rule is fixed by this commit because the correct package name for RHEL 9 is `cronie` as well.
- Loading branch information
Showing
16 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
linux_os/guide/services/cron_and_at/package_crontabs_installed/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
documentation_complete: true | ||
|
||
title: 'Install The Crontabs Package' | ||
|
||
description: 'The crontabs package should be installed.' | ||
|
||
rationale: 'The cron service allow periodic job execution, needed for almost all administrative tasks and services (software update, log rotating, etc.). Access to cron service should be restricted to administrative accounts only.' | ||
|
||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel9: CCE-86178-1 | ||
cce@rhel10: CCE-86179-9 | ||
|
||
references: | ||
srg: SRG-OS-000480-GPOS-00227 | ||
|
||
ocil_clause: 'the package is installed' | ||
|
||
ocil: |- | ||
{{{ ocil_package("crontabs") }}} | ||
template: | ||
name: package_installed | ||
vars: | ||
pkgname: crontabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
CCE-86170-8 | ||
CCE-86178-1 | ||
CCE-86179-9 | ||
CCE-86180-7 | ||
CCE-86181-5 | ||
CCE-86186-4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters