all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Wingo <wingo@igalia.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add GeoClue desktop service.
Date: Mon, 24 Aug 2015 10:23:40 +0200	[thread overview]
Message-ID: <87io859jsj.fsf@igalia.com> (raw)
In-Reply-To: <87vbc5vg2r.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sun, 23 Aug 2015 23:40:44 +0200")

On Sun 23 Aug 2015 23:40, ludo@gnu.org (Ludovic Courtès) writes:

> Andy Wingo <wingo@igalia.com> skribis:
>
>> On Thu 20 Aug 2015 17:09, ludo@gnu.org (Ludovic Courtès) writes:
>>
>>>> +@defvr {Scheme Variable} %standard-geoclue-applications
>>>> +The standard list of well-known GeoClue application configurations,
>>>> +granting authority to GNOME's date-and-time utility to ask for the
>>>> +current location in order to set the time zone, and allowing the Firefox
>>>> +(IceCat) and Epiphany web browsers to request location information.
>>>> +Firefox and Epiphany both query the user before allowing a web page to
>>>> +know the user's location.
>>>> +@end defvr
>>>
>>> Does that mean that all these applications get blanket access to
>>> location info, and just happen to be nice enough to ask the user?
>>>
>>> If the answer is yes, I would rather remove the Web browsers from this
>>> list by default.
>>
>> I think that's right.  I'm still figuring some of this out :P But yeah,
>> I think the reasoning is that since web browsers ask you already, don't
>> default to giving the web access, and you already trust the web browser
>> in other ways, that this is a reasonable default that prevents
>> double-asking.
>
> OK.  But then that raises the question of how applications are
> authenticated: if I call my binary ‘epiphany’, will GeoClue consider it
> to be the authorized application?  (Sorry for the newbie question...)

I think the name is taken from the .desktop files -- which is to say,
geoclue trusts the application to be who it says it is.

>> I guess ideally it would be going through policykit and asking the user
>> through the session manager.  Maybe that's a TODO; dunno.
>
> My only concern is to make sure the default settings are
> privacy-preserving.  I realize that’s a question that goes beyond GuixSD
> itself though.

There are unknowns for me too here, I am also a newbie.  I was just
packaging things :)

However it seems to me that you don't need a location service to get
your location -- any app has basically the right privileges to grovel
through things on its own, either through geo-IP things or via seeing
what wireless hotspots are around, etc.  This is what Chromium does for
example.  The model isn't "an app will never know my location unless
geoclue authorizes it".  It's more like "users sometimes want their apps
to know the user's location, and geoclue can do a good efficient job at
it instead of making each app roll its own implementation".

But when GeoClue requests authorization, it does so by sending a request
to the object installed at /org/freedesktop/GeoClue2/Agent on the system
bus.  GNOME Shell installs an object there; presumably it uses an
overlay dialog to ask the user for permission.  I'm not sure how it
works in multi-user setups.  Without an object installed there I don't
know how things work, or if apps that aren't whitelisted work at all.

Andy

  reply	other threads:[~2015-08-24  8:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-15 19:36 [PATCH] gnu: Add GeoClue desktop service Andy Wingo
2015-08-20 15:09 ` Ludovic Courtès
2015-08-20 16:00   ` Andy Wingo
2015-08-23 21:40     ` Ludovic Courtès
2015-08-24  8:23       ` Andy Wingo [this message]
2015-08-24 22:22         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87io859jsj.fsf@igalia.com \
    --to=wingo@igalia.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.