ROS (Robot Operating System)
TMA-ROS1-1.3.2
Ensure sudo commands use pty
中レベル 1自動ros
説明
sudo can be configured to run only from a psuedo-pty The audit requires "Defaults use_pty" in /etc/sudoers or /etc/sudoers.d/*. Host-level control from the CIS ROS Melodic benchmark (Ubuntu 18.04 robot hosts); run as root.
チェック方法
監査方法: シェルコマンド
shell
grep -Pqs -- '^\s*Defaults\s+([^#]+,\s*)?use_pty(,\s*\S+\s*)*(\s+#.*)?$' /etc/sudoers /etc/sudoers.d/* && echo compliant || echo 'Defaults use_pty is not set'- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
edit the file /etc/sudoers or a file in /etc/sudoers.d/ and add the following line: Defaults use_pty
プロパティ
- オペレーティングシステム
- すべて
- タグ
- rosros1melodicsystem
- 参照
- CIS ROS Melodic Benchmark v1.0.0 - 1.3.2 Ensure sudo commands use pty
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target ros