TMA-ROS1-1.1.22
Disable Automounting
MoyenneNiveau 1Automatiséeros
Description
autofs allows automatic mounting of devices, typically including CD/DVDs and USB drives. The audit requires autofs to be not installed or not enabled (systemctl is-enabled autofs). Host-level control from the CIS ROS Melodic benchmark (Ubuntu 18.04 robot hosts); run as root.
Méthode de vérification
Méthode d'audit: Commande shell
shell
s=$(systemctl is-enabled autofs 2>/dev/null)
[ "$s" = enabled ] && echo 'autofs is enabled' || echo compliant- Sortie attendue
compliant
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
Run one of the following commands: Run the following command to disable autofs : # systemctl --now disable autofs OR Run the following command to remove autofs # apt purge autofs
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- rosros1melodicsystem
- Référence
- CIS ROS Melodic Benchmark v1.0.0 - 1.1.22 Disable Automounting
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target ros