TMAegisБета
Другие правила для ros

ROS (Robot Operating System)

TMA-ROS1-2.2.1.3

Ensure chrony is configured

СреднийУровень 1Автоматическаяros

Описание

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.

Как проверяется

Метод проверки: Команда оболочки

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
Ожидаемый вывод
compliant

Как исправляется

Метод исправления: Рекомендация или патч инфраструктуры

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.

Свойства

Операционные системы
Любая
Теги
rosros1melodicservices
Источник
CIS ROS Melodic Benchmark v1.0.0 - 2.2.1.3 Ensure chrony is configured

Проверить этот хост

Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.

shell
tmaegis scan --target ros