Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672470 - gnome keyring not unlocked after login
Summary: gnome keyring not unlocked after login
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-03 20:59 UTC by Marcin Szamotulski
Modified: 2019-03-09 08:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Szamotulski 2018-12-03 20:59:08 UTC
The default /etc/pam.d configuration does not unlock gnome keyring by default.  Fix is quite simple.  This is how `/etc/pam.d/gdm-password` should look like:
```
account  include  system-login

auth     substack system-login
auth     optional pam_gnome_keyring.so

password required pam_deny.so
password optional pam_gnome_keyring.so

session  substack system-login
session  optional pam_gnome_keyring.so auto_start
```

This adds `password optional pam_gnome_keyring.so`.
Comment 1 Mart Raudsepp gentoo-dev 2018-12-03 22:31:12 UTC
Things are working fine for most people after rework already done in pambase as part of bug 652194. You are going to have to explain/reason this more please.
Comment 2 Marcin Szamotulski 2018-12-04 10:52:54 UTC
I use `sys-auth/pambase-20150213-r2` and `gdm-3.24.3-r1` I get the same problem. Is the reworked `pambase` already in tree?

Note that I modified `/etc/pam.d/gdm-password` which belongs to `gdm` package.
Comment 3 Mart Raudsepp gentoo-dev 2018-12-04 12:16:32 UTC
sys-auth/pambase-20150213-r2 is the reworked pambase.

Is your keyring password different than login password? If yes, then automatic keyring unlocking is supposed to not work, as you haven't entered the unlock password and it isn't considered secure to just randomly unlock it without having entered the correct password. If they are the same, it can automatically unlock the keyring as well (as you entered it as login password and it worked for keyring unlock too). Is that your real problem here perhaps?
Comment 4 Marcin Szamotulski 2018-12-04 12:24:48 UTC
No that's not my case, the two keys are the same. It's also proven by the fact that my solution works.  Adding `password optional pam_gnome_keyring.so` in `gdm-password` file is where the login password is supplied to the gnome keyrihg and now it unlocks the gnome keyring.

Note: this is a fresh gentoo installation, but I had the same problem on my previous laptop.

I have to double check if the rest of the pam modules are the same as in `pambase`.  Since I needed to add `pam_mount` maybe I didn't merge the fix in pambase into my `/etc/` files.
Comment 5 Mart Raudsepp gentoo-dev 2018-12-04 12:36:31 UTC
pambase files are config protected. Maybe you just hadn't etc-update/dispatch-conf/whatever the fixed pambase updates, as you seem to allude as well. Please make sure you use the new pambase files, and they weren't just in ._cfg000?_*
Comment 6 Marcin Szamotulski 2018-12-06 08:40:35 UTC
I checked that I don't have outstanding ._cfg files, I also build the most recent `pambase` module (with `ebuild ... build`) and compared the pam files.

Maybe the problem is that even though I have `gnome-keyring` use flag set for `pambase` it's not used:
```
eix -e pambase
[I] sys-auth/pambase
     Available versions:  ~*20101024-r2^b 20150213-r1^b 20150213-r2^b {consolekit +cracklib debug elogind gnome-keyring minimal mktemp +nullok pam_krb5 pam_ssh passwdqc securetty selinux +sha512 systemd}
     Installed versions:  20150213-r2^b(09:33:01 06/12/18)(cracklib nullok sha512 systemd -consolekit -debug -elogind -minimal -mktemp -pam_krb5 -pam_ssh -passwdqc -securetty -selinux)
     Homepage:            https://wiki.gentoo.org/wiki/Project:PAM
     Description:         PAM base configuration files
```
Comment 7 Mart Raudsepp gentoo-dev 2018-12-06 11:16:57 UTC
There is no gnome-keyring USE flag anymore in the new pambase revision, as it doesn't have to be conditional anymore (it is setup to be optional and so on, or something, so it applies only if pam_gnome_keyring.so is there from gnome-keyring being installed or something)
Comment 8 Mart Raudsepp gentoo-dev 2019-03-09 08:44:01 UTC
Any news/updates on your end on this?