GNU bug report logs - #38160
GNOME Keyring service

Previous Next

Package: guix-patches;

Reported by: Leo Prikler <leo.prikler <at> student.tugraz.at>

Date: Sun, 10 Nov 2019 13:07:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38160 in the body.
You can then email your comments to 38160 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#38160; Package guix-patches. (Sun, 10 Nov 2019 13:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Prikler <leo.prikler <at> student.tugraz.at>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 10 Nov 2019 13:07:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Prikler <leo.prikler <at> student.tugraz.at>
To: guix-patches <at> gnu.org
Subject: GNOME Keyring service
Date: Sun, 10 Nov 2019 14:06:30 +0100
[Message part 1 (text/plain, inline)]
Hello,

If you're using gnome-keyring on Guix with the default configuration,
you probably noticed, that you have to put in your login password twice
-- once in GDM, once afterwards to unlock the keyring.  This is not
very user-friendly.

It turns out, that there is a solution for this, which is detailed in
[1].  The attached patch implements the simple version, i.e. it adds
pam_gnome_keyring.so to the end of a block.  It will not work in
presence of a pam-entry with (control "sufficient"), but it does work
for extending the default desktop setup.

Regards,

Leo

[1] https://wiki.gnome.org/Projects/GnomeKeyring/Pam
[0001-gnu-Add-gnome-keyring-service.patch (text/x-patch, attachment)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Wed, 04 Dec 2019 17:03:02 GMT) Full text and rfc822 format available.

Notification sent to Leo Prikler <leo.prikler <at> student.tugraz.at>:
bug acknowledged by developer. (Wed, 04 Dec 2019 17:03:02 GMT) Full text and rfc822 format available.

Message #10 received at 38160-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Leo Prikler <leo.prikler <at> student.tugraz.at>
Cc: 38160-done <at> debbugs.gnu.org
Subject: Re: [bug#38160] GNOME Keyring service
Date: Wed, 04 Dec 2019 18:02:11 +0100
[Message part 1 (text/plain, inline)]
Hi Leo,

Leo Prikler <leo.prikler <at> student.tugraz.at> skribis:

> From 9ac5f99a65f0599a3210443305042155f9b06e39 Mon Sep 17 00:00:00 2001
> From: Leo Prikler <leo.prikler <at> student.tugraz.at>
> Date: Sat, 9 Nov 2019 16:14:45 +0100
> Subject: [PATCH] gnu: Add GNOME Keyring service
>
> * gnu/services/desktop.scm: (<gnome-keyring-configuration>): New record type.
> (gnome-keyring-service-type): New service type.
> * doc/guix.texi: Document it.

Nice!  Applied with the minor doc changes below.

Thanks,
Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/doc/guix.texi b/doc/guix.texi
index 51948dc0f7..712f814cdc 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -15755,7 +15755,8 @@ Users need to be in the @code{lp} group to access the D-Bus service.
 
 @defvr {Scheme Variable} gnome-keyring-service-type
 This is the type of the service that adds the
-@uref{https://wiki.gnome.org/Projects/GnomeKeyring, GNOME Keyring}.  Its value is a @code{gnome-keyring-configuration} object (see below.)
+@uref{https://wiki.gnome.org/Projects/GnomeKeyring, GNOME Keyring}.  Its
+value is a @code{gnome-keyring-configuration} object (see below.)
 
 This service adds the @code{gnome-keyring} package to the system profile
 and extends PAM with entries using @code{pam_gnome_keyring.so}, unlocking
@@ -15768,14 +15769,18 @@ Configuration record for the GNOME Keyring service.
 @table @asis
 @item @code{keyring} (default: @code{gnome-keyring})
 The GNOME keyring package to use.
+
 @item @code{pam-services}
-An alist (SERVICE . KIND) of PAM services to extend.  SERVICE is the name
-of an existing service to extend and KIND is one of @code{login} or
-@code{passwd}.  If @code{login} is given, it adds an optional
+A list of @code{(@var{service} . @var{kind})} pairs denoting PAM
+services to extend, where @var{service} is the name of an existing
+service to extend and @var{kind} is one of @code{login} or
+@code{passwd}.
+
+If @code{login} is given, it adds an optional
 @code{pam_gnome_keyring.so} to the auth block without arguments and to
-the session block with @code{auto_start}.
-If @code{passwd} is given, it adds an optional @code{pam_gnome_keyring.so}
-to the password block without arguments.
+the session block with @code{auto_start}.  If @code{passwd} is given, it
+adds an optional @code{pam_gnome_keyring.so} to the password block
+without arguments.
 
 By default, this field contains ``gdm-password'' with the value @code{login}
 and ``passwd'' is with the value @code{passwd}.

Information forwarded to guix-patches <at> gnu.org:
bug#38160; Package guix-patches. (Wed, 04 Dec 2019 17:05:01 GMT) Full text and rfc822 format available.

Message #13 received at 38160 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Leo Prikler <leo.prikler <at> student.tugraz.at>
Cc: 38160 <at> debbugs.gnu.org
Subject: Re: [bug#38160] GNOME Keyring service
Date: Wed, 04 Dec 2019 18:04:25 +0100
Leo Prikler <leo.prikler <at> student.tugraz.at> skribis:

> From 9ac5f99a65f0599a3210443305042155f9b06e39 Mon Sep 17 00:00:00 2001
> From: Leo Prikler <leo.prikler <at> student.tugraz.at>
> Date: Sat, 9 Nov 2019 16:14:45 +0100
> Subject: [PATCH] gnu: Add GNOME Keyring service
>
> * gnu/services/desktop.scm: (<gnome-keyring-configuration>): New record type.
> (gnome-keyring-service-type): New service type.
> * doc/guix.texi: Document it.

BTW, do you think ‘gnome-service-type’ should always enable
‘gnome-keyring-service-type’?  I would think it’s a good idea.

Thoughts?

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#38160; Package guix-patches. (Sun, 08 Dec 2019 14:22:02 GMT) Full text and rfc822 format available.

Message #16 received at 38160 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Leo Prikler <leo.prikler <at> student.tugraz.at>
Cc: 38160 <at> debbugs.gnu.org
Subject: Re: [bug#38160] GNOME Keyring service
Date: Sun, 08 Dec 2019 15:21:24 +0100
Hi Leo,

Leo Prikler <leo.prikler <at> student.tugraz.at> skribis:

[...]

>> BTW, do you think ‘gnome-service-type’ should always enable
>> ‘gnome-keyring-service-type’?  I would think it’s a good idea.
>> 
>> Thoughts?
>> 
>> Ludo’.
> I'm not too sure about that, to be honest.
> 1. Using GNOME does not imply using its Keyring.  I personally have one
> Guix machine, which just uses GNOME to launch some games, and I could
> imagine some Guix folks do the same with Emacs.  
> 2. The default configuration is made so that it works with GDM, which
> is reasonable, as that is the default for Guix as well.  However, it
> would be possible to launch GNOME from other DMs, which would need
> different configuration.
> Of course, since the service itself is rather small, it would likely
> just "do nothing" for both groups.  However, I would still prefer the
> explicit composition of services over an implicit one – unless a "GNOME
> with GDM and everything else" service was to be added to Guix. 
> Alternatively, we could define a variable %gnome-desktop-services,
> which extends %desktop-services with GNOME, this service, and some
> other GNOME-related services, e.g. one for evolution-data-server.

OK.  I don’t use GNOME myself but I think the goal is for
‘gnome-service-type’ and ‘%desktop-services’ to provide something that
works out of the box, and that’s why I thought it might make sense to
have the keyring service as a default.

But anyway, I understand what you’re saying, so we can leave it as is
and we can always revisit it later if someone feels a need.

Thanks!

Ludo’.

PS: Please keep the bug Cc’d.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 06 Jan 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.