ROS (Robot Operating System)
TMA-ROS1-2.2.1.3
Ensure chrony is configured
Descripción
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.
Cómo se verifica
Método de auditoría: Comando de 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- Salida esperada
compliant
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
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.
Propiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- rosros1melodicservices
- Referencia
- CIS ROS Melodic Benchmark v1.0.0 - 2.2.1.3 Ensure chrony is configured
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
tmaegis scan --target ros