TMAegisBeta
Više pravila za ros

ROS (Robot Operating System)

TMA-ROS1-2.2.1.3

Ensure chrony is configured

SrednjaNivo 1Automatskaros

Opis

chrony is a daemon which implements the Network Time Protocol (NTP) is designed to synchronize system clocks across a variety of systems and use a source that is highly accurate. More information on chrony can be found at http://chrony.tuxfamily.org/. chrony can be configured to be a client and/or a server. Applies when chrony is used: the audit requires a server or pool line and chronyd running as the chrony (_chrony) user. Host-level control from the CIS ROS Melodic benchmark (Ubuntu 18.04 robot hosts); run as root.

Kako se proverava

Metod provere: Komanda ljuske

shell
f=/etc/chrony/chrony.conf; [ -f "$f" ] || f=/etc/chrony.conf
grep -Eqs '^(server|pool)\s' "$f" /etc/chrony/sources.d/*.sources || { echo 'no server/pool in chrony configuration'; exit 1; }
u=$(ps -eo user=,comm= | awk '$2 == "chronyd" {print $1; exit}')
case "$u" in _chrony|chrony) echo compliant ;; '') echo 'chronyd is not running' ;; *) echo "chronyd runs as $u" ;; esac
Očekivani izlaz
compliant

Kako se ispravlja

Metod ispravke: Smernica ili zakrpa infrastrukture

Add or edit server or pool lines to /etc/chrony.conf as appropriate: server <remote-server> Configure chrony to run as the chrony user by configuring the appropriate startup script for your distribution. Startup scripts are typically stored in /etc/init.d or /etc/systemd.

Svojstva

Operativni sistemi
Bilo koji
Oznake
rosros1melodicservices
Referenca
CIS ROS Melodic Benchmark v1.0.0 - 2.2.1.3 Ensure chrony is configured

Proverite ovaj računar

Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.

shell
tmaegis scan --target ros