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

修正方法

修正方法: ガイダンスまたは IaC パッチ

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