Skip to content

Commit

Permalink
Ubuntu 24.04 2.4.2.1 Ensure at is restricted to authorized users
Browse files Browse the repository at this point in the history
  • Loading branch information
ericeberry committed Dec 12, 2024
1 parent e8d46c2 commit 3b16f59
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 5 deletions.
1 change: 1 addition & 0 deletions components/cronie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ packages:
- cronie
rules:
- disable_anacron
- file_at_allow_exists
- file_at_deny_not_exist
- file_cron_allow_exists
- file_cron_deny_not_exist
Expand Down
10 changes: 5 additions & 5 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1090,14 +1090,14 @@ controls:
levels:
- l1_server
- l1_workstation
related_rules:
- file_at_deny_not_exist
rules:
- file_at_allow_exists
- file_groupowner_at_allow
- file_owner_at_allow
- file_permissions_at_allow
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/5.1.9.

- file_at_deny_not_exist
status: automated
- id: 3.1.1
title: Ensure IPv6 status is identified (Manual)
levels:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
documentation_complete: true


title: Ensure that /etc/at.allow exists

description: |-
The file <tt>/etc/at.allow</tt> should exist and should be used instead
of <tt>/etc/at.deny</tt>.
rationale: |-
On many systems, only the system administrator is authorized to schedule at jobs.
Using the at.allow file to control who can run at jobs enforces this policy. It is easier
to manage an allow list than a deny list. In a deny list, you could potentially add a user
ID to the system and forget to add it to the deny files.
severity: medium

ocil_clause: 'the file /etc/at.allow does not exist'

ocil: |-
The file <tt>/etc/at.allow</tt> should exist.
This can be checked by running the following command:
<pre>
stat /etc/at.allow
</pre>
and the output should list the file.
template:
name: file_existence
vars:
filepath: /etc/at.allow
exists: true
fileuid: "0"
filemode: "0640"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
rm -rf /etc/at.allow
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
touch /etc/at.allow

0 comments on commit 3b16f59

Please sign in to comment.