macOS
TMA-MACOS14-2.6.1.2
Ensure 'Show Location Icon in Control Center when System Services Request Your Location' Is Enabled
说明
This setting provides the user an understanding of the current status of Location Services and which applications are using it. Apple has fully integrated location services into macOS. When user applications access location, an arrow is displayed next to the Control Center in the menu bar to give users an indication when their location is being accessed. By default, system services like time zones, weather, travel times, geolocation, "Find my Mac," and advertising services do not indicate the location is accessed. Enabling the “Show location icon in the menu bar when System Services request your location” setting will show an arrow in the control center when a system service accesses the location. Although an indication that location was accessed, Control Center will only say that it was accessed by "System Services" and not the individual service. Looking in System Settings > Locatio...
检查方式
审计方法: Shell 命令
/usr/bin/osascript -l JavaScript <<'EOS'
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.locationmenu').objectForKey('ShowSystemServices').js
EOS- 预期输出
true
修复方式
修复方法: 操作指南或基础设施补丁
Graphical Method: Perform the following steps to set whether the location services icon is in the menu bar: 1. Open System Settings 2. Select Privacy & Security 3. Select Location Services 4. Select Details... 5. Set Show location icon in menu bar when System Services request your location to enabled Terminal Method: Run the following commands to set the option of the location services icon being in the menu bar: % /usr/bin/sudo /usr/bin/defaults write /Library/Preferences/com.apple.locationmenu.plist ShowSystemServices -bool true
属性
- 操作系统
- macos-14
- 标签
- macossonoma
- 参考
- CIS Apple macOS 14.0 Sonoma Benchmark v3.1.0 - 2.6.1.2 Ensure 'Show Location Icon in Control Center when System Services Request Your Location' Is Enabled
检查本机
请在您有权审计的机器上运行此命令。扫描为只读操作。
tmaegis scan --target macos --level 2