2.2.1 Ensure autofs services are not in use

Information

autofs allows automatic mounting of devices, typically including CD/DVDs and USB drives.

Rationale:

With automounting enabled anyone with physical access could attach a USB drive or disc and have its contents available in system even if they lacked permissions to mount it themselves.

Impact:

The use of portable hard drives is very common for workstation users. If your organization allows the use of portable storage or media on workstations and physical access controls to workstations is considered adequate there is little value add in turning off automounting.

There may be packages that are dependent on the autofs package. If the autofs package is removed, these dependent packages will be removed as well. Before removing the autofs package, review any dependent packages to determine if they are required on the system.

-IF- a dependent package is required: stop and mask the autofs.service leaving the autofs package installed.

Solution

Run the following commands to stop autofs.service and remove autofs package:

# systemctl stop autofs.service
# dnf remove autofs

-OR-
-IF- the autofs package is required as a dependency:
Run the following commands to stop and mask autofs.service:

# systemctl stop autofs.service
# systemctl mask autofs.service

See Also

https://workbench.cisecurity.org/benchmarks/15288

Item Details

Category: MEDIA PROTECTION

References: 800-53|MP-7, CSCv7|8.5

Plugin: Unix

Control ID: 3dcb7a1e271ba1fd3dc44f8f4740dd8b7e5386fdcff6d0a150d03ef537e99336