-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11185 from Mab879/add_cron_deny_rules
Add cron.deny Owership Rules
- Loading branch information
Showing
5 changed files
with
84 additions
and
2 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
39 changes: 39 additions & 0 deletions
39
linux_os/guide/services/cron_and_at/file_groupowner_cron_deny/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,39 @@ | ||
documentation_complete: true | ||
|
||
prodtype: rhel9 | ||
|
||
title: 'Verify Group Who Owns cron.deny' | ||
|
||
description: |- | ||
{{{ describe_file_group_owner(file="/etc/cron.deny", group="root") }}} | ||
rationale: |- | ||
Service configuration files enable or disable features of their respective services that if configured incorrectly | ||
can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the | ||
correct group to prevent unauthorized changes. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel9: CCE-86537-8 | ||
|
||
|
||
references: | ||
disa: CCI-000366 | ||
nist: CM-6 b | ||
srg: SRG-OS-000480-GPOS-00227 | ||
|
||
ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/cron.deny", group="root") }}}' | ||
|
||
ocil: |- | ||
{{{ ocil_file_group_owner(file="/etc/cron.deny", group="root") }}} | ||
fixtext: '{{{ fixtext_file_group_owner(file="/etc/cron.deny/", group="root") }}}' | ||
|
||
srg_requirement: '{{{ srg_requirement_file_group_owner(file="/etc/cron.deny", group="root") }}}' | ||
|
||
template: | ||
name: file_groupowner | ||
vars: | ||
filepath: /etc/cron.deny | ||
gid_or_name: '0' |
41 changes: 41 additions & 0 deletions
41
linux_os/guide/services/cron_and_at/file_owner_cron_deny/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,41 @@ | ||
documentation_complete: true | ||
|
||
prodtype: rhel9 | ||
|
||
title: 'Verify Owner on cron.deny' | ||
|
||
description: |- | ||
{{{ describe_file_owner(file="/etc/cron.deny", owner="root") }}} | ||
rationale: |- | ||
Service configuration files enable or disable features of their respective services that if configured incorrectly | ||
can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the | ||
correct user to prevent unauthorized changes. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel9: CCE-86887-7 | ||
|
||
references: | ||
disa: CCI-000366 | ||
nist: CM-6 b | ||
srg: SRG-OS-000480-GPOS-00227 | ||
|
||
|
||
ocil_clause: '{{{ ocil_clause_file_owner(file="/etc/cron.deny", owner="root") }}}' | ||
|
||
ocil: |- | ||
{{{ ocil_file_owner(file="/etc/cron.deny", owner="root") }}} | ||
fixtext: '{{{ fixtext_file_owner(file="/etc/cron.deny/", owner="root") }}}' | ||
|
||
srg_requirement: '{{{ srg_requirement_file_owner(file="/etc/cron.deny", owner="root") }}}' | ||
|
||
template: | ||
name: file_owner | ||
vars: | ||
filepath: /etc/cron.deny | ||
fileuid: '0' | ||
|
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