mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-06 13:01:44 +02:00
Gpsd can use TCP socket to communicate with client applications, which poses security risks. When configured for ChromeOS, the socket export should be disabled and shared memory export should be used to communicate with Chrome. See the TEST section for example configuration. BUG=None TEST=$ emerge-x86-generic gpsd TEST=$ USE="$USE -sockets" emerge-x86-alex gpsd and make sure gpsd-3.3 is emerged on the device, run $ gpsd -D 1 /dev/ttyUSB2 and make sure gpsd is running as daemon $ netstat | grep gpsd and make sure gpsd can't be found (so that gpsd is not listening on any TCP socket port) Change-Id: I8d9d98aa62cf5fc605f79b28467b8c37178bc298 Reviewed-on: https://gerrit.chromium.org/gerrit/12567 Reviewed-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Yufeng Shen <miletus@chromium.org> Tested-by: Yufeng Shen <miletus@chromium.org>