Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 24.04: Implement 2.3.1.1 Ensure a single time synchronization daemon is in use #12823

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/ntp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ rules:
- package_timesyncd_installed
- package_timesyncd_removed
- service_chronyd_enabled
- service_chronyd_disabled
- service_chronyd_or_ntpd_enabled
- service_ntp_enabled
- service_ntpd_enabled
- service_timesyncd_enabled
- service_timesyncd_disabled
- service_timesyncd_configured
- service_timesyncd_root_distance_configured
9 changes: 4 additions & 5 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -939,12 +939,11 @@ controls:
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- package_chrony_installed
- package_ntp_installed
- package_timesyncd_installed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.1.1.1.
- service_chronyd_enabled
- service_timesyncd_disabled
status: automated

- id: 2.3.2.1
title: Ensure systemd-timesyncd configured with authorized timeserver (Automated)
Expand Down
23 changes: 23 additions & 0 deletions linux_os/guide/services/ntp/service_chronyd_disabled/rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
documentation_complete: true

title: 'The Chronyd service is disabled'

description: |-
{{{ describe_service_disable(service="chrony") }}}

rationale: |-
Disabling the <tt>chrony</tt> service ensures that there is
only single one time service running.

severity: medium

platform: package[chrony]

template:
name: service_disabled
vars:
packagename: chrony
servicename: chronyd
servicename@ubuntu2004: chrony
servicename@ubuntu2204: chrony
servicename@debian12: chrony
25 changes: 25 additions & 0 deletions linux_os/guide/services/ntp/service_timesyncd_disabled/rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
documentation_complete: true


title: 'Disable systemd_timesyncd Service'

description: |-
{{{ describe_service_disable(service="systemd_timesyncd") }}}

rationale: |-
Disabling the <tt>systemd_timesyncd</tt> service ensures that there is
only single one time service running.
<br /><br />
Additional information on Ubuntu network time protocol is
available at
{{{ weblink(link="https://ubuntu.com/server/docs/about-time-synchronisation") }}}.

severity: medium

platform: package[chrony] or package[ntp]

template:
name: service_disabled
vars:
servicename: systemd-timesyncd
packagename: systemd
Loading