ROS (Robot Operating System)
TMA-ROS1-1.3.3
Ensure sudo log file exists
OrtaDüzey 1Otomatikros
Açıklama
sudo can use a custom log file The audit requires a "Defaults logfile=<path>" entry in /etc/sudoers or /etc/sudoers.d/*. Host-level control from the CIS ROS Melodic benchmark (Ubuntu 18.04 robot hosts); run as root.
Nasıl denetlenir
Denetim yöntemi: Kabuk komutu
shell
grep -Pqs -- '^\s*Defaults\s+([^#]+,\s*)?logfile=\S+' /etc/sudoers /etc/sudoers.d/* && echo compliant || echo 'Defaults logfile= is not set'- Beklenen çıktı
compliant
Nasıl düzeltilir
Düzeltme yöntemi: Kılavuz veya altyapı yaması
edit the file /etc/sudoers or a file in /etc/sudoers.d/ and add the following line: Defaults logfile="<PATH TO CUSTOM LOG FILE>" Example Defaults logfile="/var/log/sudo.log"
Özellikler
- İşletim sistemleri
- Herhangi biri
- Etiketler
- rosros1melodicsystem
- Referans
- CIS ROS Melodic Benchmark v1.0.0 - 1.3.3 Ensure sudo log file exists
Bu ana makineyi denetle
Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.
shell
tmaegis scan --target ros