TMAegis베타
macos 관련 규칙 더 보기

macOS

TMA-MACOS15-2.6.1.1

Ensure Location Services Is Enabled

낮음레벨 2자동macos

설명

macOS uses location information gathered through local Wi-Fi networks to enable applications to supply relevant information to users. With the operating system verifying the location, users do not need to change the time or the time zone. The computer will change them based on the user's location.

점검 방법

감사 방식: 셸 명령

shell
n=$(/bin/launchctl list 2>/dev/null | /usr/bin/grep -c com.apple.locationd)
e=$(/usr/bin/sudo -u _locationd /usr/bin/osascript -l JavaScript <<'EOS'
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.locationd').objectForKey('LocationServicesEnabled').js
EOS
) || exit 1
if [ "${n:-0}" -ge 1 ] && [ "$e" = true ]; then echo compliant; else echo "locationd=$n LocationServicesEnabled=${e:-unset}"; fi
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

Terminal: sudo /bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.locationd.plist ; sudo /usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled -bool true ; sudo /usr/bin/killall locationd. GUI: System Settings > Privacy & Security > Location Services > Set Location Services to enabled.

속성

운영 체제
macos-15
태그
macossystem-settings
참고 자료
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 2.6.1.1 Ensure Location Services Is Enabled

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target macos --level 2