What is locationd and why is my 3rd party firewall intercepting it in Snow Leopard at intervals?

Little Snitch reported an outgoing connection from locationd which appears to be a new daemon installed by default on Snow Leopard.

A search for strings inside the locationd binary shows a link to http://skyhookwireless.com. The index of their page reads:

Skyhook Wireless' XPS is the world's first true hybrid positioning system.

Combining the unique benefits of GPS, Cell Tower triangulation and Wi-Fi Positioning, mobile consumers no longer have to wait minutes for a response or cope with inaccurate location.

If it happens again, I will report back with more details (endpoint, etc). I only clicked "allow once", so I did not create a firewall rule, unfortunately.


Solution 1:

Short answer: You are seeing the request to Skyhook Wireless because they have the geographic database that Apple uses for Core Location in the operating system.

Longer answer:

Skyhook Wireless is the company with the geographic database about WiFi access points that is used for the new location services (Core Location) in OS X Snow Leopard. Core Location is a developer framework for dealing with the computer's location, and a usage example is automatic time zone updates based on your location. There is an option to turn the time zone updates on/off under the Date & Time preferences pane under Time Zone.

Skyhook Wireless's database triangulates a location based on a combination of IP geo-location and the MAC addresses of wireless devices that can be seen, even if the networks it is triangulating the location from is not open. (MAC addresses are always unencrypted and public even when using WPA since the MAC address helps identify the access point.) If I recall correctly, they can usually triangulate to within a few hundred meters of accuracy.

Solution 2:

As mentioned in another answer, locationd is the daemon (system process) responsible for Snow Leopard's new Core Location service, which uses the Skyhook WiFi location database to (attempt to) ascertain your location based on the WiFi access points your Mac "sees." However, disabling the "automatically update time zone" in Date and Time Preferences does NOT disable this feature. To completely disable Location Services, go to the Security preferences pane, and check the "Disable Location Services" button. Note that you'll only see any of these options if your Mac actually has WiFi. (this may sound obvious but I thought I'd better mention it seeing as how I just spent about ten minutes looking at my Mac Pro [which doesn't have AirPort] and scratching my head saying "gee, now I thought there was an option to disable that...")