-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ubuntu 24.04 2.4.2.1 Ensure at is restricted to authorized users
- Loading branch information
1 parent
e7eb734
commit 62527ea
Showing
5 changed files
with
26 additions
and
69 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
29 changes: 7 additions & 22 deletions
29
linux_os/guide/services/cron_and_at/restrict_at_cron_users/file_groupowner_at_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 |
---|---|---|
@@ -1,40 +1,25 @@ | ||
documentation_complete: true | ||
|
||
title: 'Verify Group Who Owns /etc/at.allow file' | ||
title: 'Verify Group Who Owns /etc/at.deny file' | ||
|
||
description: |- | ||
If <tt>/etc/at.allow</tt> exists, it must be group-owned by <tt>root</tt>. | ||
{{{ describe_file_group_owner(file="/etc/at.allow", group="root") }}} | ||
If <tt>/etc/at.deny</tt> exists, it must be group-owned by <tt>root</tt>. | ||
{{{ describe_file_group_owner(file="/etc/at.deny", group="root") }}} | ||
rationale: |- | ||
If the owner of the at.allow file is not set to root, the possibility exists for an | ||
If the owner of the at.deny file is not set to root, the possibility exists for an | ||
unauthorized user to view or edit sensitive information. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel8: CCE-87102-0 | ||
cce@rhel9: CCE-87103-8 | ||
cce@rhel10: CCE-90598-4 | ||
cce@sle12: CCE-91685-8 | ||
cce@sle15: CCE-91315-2 | ||
cce@slmicro5: CCE-93928-0 | ||
|
||
references: | ||
cis@sle12: 5.1.9 | ||
cis@sle15: 5.1.9 | ||
cis@slmicro5: 5.1.9 | ||
cis@ubuntu2004: 5.1.9 | ||
cis@ubuntu2204: 5.1.9 | ||
|
||
ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/at.allow", group="root") }}}' | ||
ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/at.deny", group="root") }}}' | ||
|
||
ocil: |- | ||
{{{ ocil_file_group_owner(file="/etc/at.allow", group="root") }}} | ||
{{{ ocil_file_group_owner(file="/etc/at.deny", group="root") }}} | ||
template: | ||
name: file_groupowner | ||
vars: | ||
filepath: /etc/at.allow | ||
filepath: /etc/at.deny | ||
missing_file_pass: 'true' | ||
gid_or_name: '0' |
28 changes: 7 additions & 21 deletions
28
linux_os/guide/services/cron_and_at/restrict_at_cron_users/file_owner_at_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 |
---|---|---|
@@ -1,41 +1,27 @@ | ||
documentation_complete: true | ||
|
||
|
||
title: 'Verify User Who Owns /etc/at.allow file' | ||
title: 'Verify User Who Owns /etc/at.deny file' | ||
|
||
description: |- | ||
If <tt>/etc/at.allow</tt> exists, it must be owned by <tt>root</tt>. | ||
{{{ describe_file_owner(file="/etc/at.allow", owner="root") }}} | ||
If <tt>/etc/at.deny</tt> exists, it must be owned by <tt>root</tt>. | ||
{{{ describe_file_owner(file="/etc/at.deny", owner="root") }}} | ||
rationale: |- | ||
If the owner of the at.allow file is not set to root, the possibility exists for an | ||
If the owner of the at.deny file is not set to root, the possibility exists for an | ||
unauthorized user to view or edit sensitive information. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel8: CCE-86345-6 | ||
cce@rhel9: CCE-86346-4 | ||
cce@rhel10: CCE-88524-4 | ||
cce@sle12: CCE-91687-4 | ||
cce@sle15: CCE-91317-8 | ||
cce@slmicro5: CCE-93927-2 | ||
|
||
references: | ||
cis@sle12: 5.1.9 | ||
cis@sle15: 5.1.9 | ||
cis@slmicro5: 5.1.9 | ||
cis@ubuntu2004: 5.1.9 | ||
cis@ubuntu2204: 5.1.9 | ||
|
||
ocil_clause: '{{{ ocil_clause_file_owner(file="/etc/at.allow", owner="root") }}}' | ||
ocil_clause: '{{{ ocil_clause_file_owner(file="/etc/at.deny", owner="root") }}}' | ||
|
||
ocil: |- | ||
{{{ ocil_file_owner(file="/etc/at.allow", owner="root") }}} | ||
{{{ ocil_file_owner(file="/etc/at.deny", owner="root") }}} | ||
template: | ||
name: file_owner | ||
vars: | ||
filepath: /etc/at.allow | ||
filepath: /etc/at.deny | ||
missing_file_pass: 'true' | ||
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
2 changes: 1 addition & 1 deletion
2
...on_and_at/restrict_at_cron_users/file_permissions_at_deny/tests/missing_file_test.pass.sh
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,4 +1,4 @@ | ||
#!/bin/bash | ||
# | ||
|
||
rm -f /etc/at.allow | ||
rm -f /etc/at.deny |