GNOME Bugzilla – Bug 733418
Critical keyring warning when unlocking screen
Last modified: 2014-08-11 18:56:47 UTC
After upgrading to gnome-keyring 3.12, a critical warning is printed to the journal every time I unlock the screen - possibly also after logging in from GDM. Jul 19 13:20:35 yoga gdm-password][27900]: The gnome keyring socket is not owned with the same credentials as the user login: /run/user/1000/keyring/control Jul 19 13:20:35 yoga gdm-password][27900]: gkr-pam: couldn't unlock the login keyring. Not sure if the warning is benign or not - I did not get any errors in the session itself. This is reproducible 100% of the times on Fedora 20 + GNOME 3.12 COPR.
Ray, is the screen saver PAM stack now running with different credentials compared to GNOME 3.10?
Created attachment 281844 [details] [review] pam: Don't use geteuid() to get uid for authenticated user Instead we use the 'struct passwd' that we looked up earlier. This causes issues when the PAM stack is not running as the user but as root or someone else.
Attached possible untested patch for this bug.
Review of attachment 281844 [details] [review]: Seems to be working like a charm, and code looks good to me. Thanks Stef!
Attachment 281844 [details] pushed as d5cffa1 - pam: Don't use geteuid() to get uid for authenticated user