Hal Murray <[email protected]> writes: >> Seems like the OP left after their first post. > > The question is still interesting. > > Is there some reasonably simple way for a non root client to open a > connection to GPSD and be sure it is talking to the real GPSD? > > For example, ntpd might want to (re)open a connection after dropping root.
You first have to define "the real gpsd". I think this means you have to have a system config file of daemons with port reservations such that setting it is a privileged operation, such that only those configured daemons are allowed to listen on those ports, and a way to query the reservation table. Seems like a lot of work.
