Information
The macOS system must disable Location Services.
GROUP ID: V-277087
RULE ID: SV-277087r1149413
Location Services must be disabled.
The information system must be configured to provide only essential capabilities. Disabling Location Services helps prevent unauthorized connection of devices, transfer of information, and tunneling.
Solution
Configure the macOS system to disable Location Services with the following command:
/usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled -bool false;
pid=$(/bin/launchctl print system | /usr/bin/awk '/\tcom.apple.locationd/ {print $1}')
kill -9 $pid